thunlp / KB2E

Knowledge Graph Embeddings including TransE, TransH, TransR and PTransE
MIT License
1.4k stars 449 forks source link

entity2id & relation2id mappings #3

Closed mttk closed 8 years ago

mttk commented 8 years ago

I couldn't find a description of the FB15k dataset so I'm asking this question here.

In the dataset, I saw triples such as: "/m/08mbj32 /m/0d193h /common/annotation_category/annotations./common/webpage/topic" (FB15k valid, line 830)

The relation seems to be 2 joined relations( /common/annotation_category/annotations & /common/webpage/topic) merged into one. Is this how 1-N-1 relations are handled? I found both parts of this specific relation in the relation2id description, but there are some other "concatenated" relations for which I can't find sub-parts.

If you could clear this up, I'd be really grateful.

Best, Martin

Mrlyk423 commented 8 years ago

"/common/annotation_category/annotations./common/webpage/topic" is a join relation for the cvt in Freebase.

guotong1988 commented 7 years ago

@Mrlyk423 What is cvt? Thank you.