TransX icon indicating copy to clipboard operation
TransX copied to clipboard

Trans系列之TransE and TransH, PTransE

Results 7 TransX issues
Sort by recently updated
recently updated
newest added

if (rand() % 1000 < pr) { Pair key = new Pair(fb_h.get(i), fb_r.get(i)); Set values = head_relation2tail.get(key); // 获取头实体和关系对应的尾实体集合 while (values.contains(j)) { j = rand_max(entity_num); } res += train_kb(fb_h.get(i), fb_l.get(i),...

很抱歉打扰您,想问一下您的代码如果把数据集换成FB15K237那样的数据集可以吗?如果可以的话是只需要改数据格式就行吗?

您好: 想请教一下,如果自己构造中文数据集,关系和实体姓名较长时,需要分词处理吗?一般要处理成什么格式呢? 谢谢

您好,请问按照您的代码训练好了TransH的模型后,我该怎么使用呢?通过结果进行推理,比如想查“关羽的大哥是谁”?(训练结果不太会用啊),求教

您好: 非常感谢您的代码分享! 请问代码中是否考虑了原文中所述的“a re-ranking method: we first rank all candidate entities according to the scores from TransE, and then re-rank top-500 candidates according to the scores from PTransE.”,对最终结果是否有所影响。 祝好