DeepGraphLearning / KnowledgeGraphEmbedding

MIT License
1.24k stars 264 forks source link

Given two node embedding, how to predict the relation embedding between them? #11

Closed aqzheng closed 5 years ago

Edward-Sun commented 5 years ago

To predict the relation, you can try all the available relations and see which gives the highest score.

To predict the relation embedding, you can calculate phase(r) by phase(t) - phase(h).

Please note that currently we don't use relation corruption in training. If you want to predict the relation or relation embedding. You should also corrupt the r in (h, r, t) triplets.