Closed umairq closed 2 years ago
I actually found the issue in your code myself.
Please update this line
https://github.com/dice-group/dice-embeddings/blob/e729c9027346e933a8fe0ae00faac5d7fad16640/core/abstracts.py#L258
with the following code:
return self.model.relation_embeddings(torch.LongTensor(self.relation_to_idx.loc[uri]['relation'].values))
thanks
Hi Demir, After loading the pretrained embedding, I get the entity embedding without any problem. However, when I try to get the relation embedding there is an error. Can you please fix. works fine -> pre_trained_kge.get_entity_embeddings([entity]) error -> pre_trained_kge.get_relation_embeddings([relation])
following is the error:
Thanks a lot in advance.