Closed foreseez closed 3 months ago
FB15k的数据是按照每行h \t t \t r 的形式,但是这里load_triple是要求每行为h \t r \t t的形式,将151行relationid = self.__relation2id[line_list[1]] 改为relationid = self.__relation2id[line_list[2]]即可
152行 tailid = self.__entity2id[line_list[2]] 改为 tailid = self.__entity2id[line_list[1]]
English version, Change line 151 and 152 of TransE.py to
relationid = self.__relation2id[line_list[2]]
tailid = self.__entity2id[line_list[1]]
老哥留个邮箱啊 有点错误 希望能请教一下