Skip to content

MohammadKhodadad/Knowledge_Graph_Embedding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Knowledge_Graph_Embedding

GPT2_on_ConceptNet.ipynb:

First ConceptNet is downloaded and a portion of its edges with both ends in gpt2 tokenizer vocabs are considered. Then a GPT2 model is trained on sentences with structure: "{entity1} {edge} {entity2}". The model can be then used to give you both embedding of words, or make similar knowledge based analogies, like, Person HasA hands.

Something significant is that the trained model shows both sexist and racist analogies, which makes me wonder why?!?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published