The dimension of entity vector and relation vector
Joker-Song opened this issue · 1 comments
Joker-Song commented
KnowledgeGraphEmbedding/codes/model.py
Lines 203 to 211 in bf86876
Here the re_head, im_head are hidden_size vectors but the L208-L211 wouldn't change the dimension of relation vector, so the re_relation and im_relation are both hidden_size*2 vector. How can you operate them with different dimension.
Edward-Sun commented
KnowledgeGraphEmbedding/codes/model.py
Lines 41 to 42 in bf86876
We have double_entity_embedding and double_relation_embedding arguments for our models. In the RotatE model, double_entity_embedding = True and double_relation_embedding = False. So the chunked entity dimension would be equal to the relation dimension.