jimmywangheng / knowledge_representation_pytorch

Several knowledge graph representation algorithms implemented with pytorch
MIT License
347 stars 102 forks source link

请问fb15k和wn18数据集的negvalid2id.txt和negtest2id.txt怎么得到 #10

Open chehefei opened 3 years ago

chehefei commented 3 years ago

datasets中的fb13和wn11都有对应的负例,求问如何得到fb15k和wn18对应的负例数据集合呢,非常感谢!

SRL94 commented 3 years ago

在utils.py里有calculate_one_or_many方法