qq547276542 / Agriculture_KnowledgeGraph

农业知识图谱(AgriKG):农业领域的信息检索,命名实体识别,关系抽取,智能问答,辅助决策
GNU General Public License v3.0
4.01k stars 1.56k forks source link

./wikidataSpider/TrainDataBaseOnWiki/extractTrainingData.py报错 #81

Open BlockChanZJ opened 4 years ago

BlockChanZJ commented 4 years ago

File "extractTrainingData.py", line 86, in answer = db.findRelationBetweenEntities(entityList[i].get('entity1')) AttributeError: 'Neo4j' object has no attribute 'findRelationBetweenEntities'

Neo4j 类里面没有findRelationBetweenEntities函数...请问是因为文件修改删掉了吗...

zihao-miao commented 3 years ago

File "extractTrainingData.py", line 86, in answer = db.findRelationBetweenEntities(entityList[i].get('entity1')) AttributeError: 'Neo4j' object has no attribute 'findRelationBetweenEntities'

Neo4j 类里面没有findRelationBetweenEntities函数...请问是因为文件修改删掉了吗...

你做到那一步了?那个辅助训练集标注工具你弄了吗?我的不知道怎么解决。这一步我不记得我做没做过

tongbao96 commented 3 years ago

你们跑通了吗

GritYolo commented 3 years ago

File "extractTrainingData.py", line 86, in answer = db.findRelationBetweenEntities(entityList[i].get('entity1')) AttributeError: 'Neo4j' object has no attribute 'findRelationBetweenEntities'

Neo4j 类里面没有findRelationBetweenEntities函数...请问是因为文件修改删掉了吗...

同问,findRelationBetweenEntities函数没有呢,程序bug出在找不到这个函数这了

GritYolo commented 3 years ago

你们跑通了吗

没有,卡在 File "extractTrainingData.py", line 86, in answer = db.findRelationBetweenEntities(entityList[i].get('entity1')) AttributeError: 'Neo4j' object has no attribute 'findRelationBetweenEntities'

Neo4j 类里面没有findRelationBetweenEntities函数

tongbao96 commented 3 years ago

我的卡在answer变量的问题,说在引用前就定义了还是怎么了------------------ 原始邮件 ------------------ 发件人: "GritYolo"<notifications@github.com> 发送时间: 2020年12月14日(星期一) 晚上11:23 收件人: "qq547276542/Agriculture_KnowledgeGraph"<Agriculture_KnowledgeGraph@noreply.github.com>; 抄送: "baotongnoob"<448276274@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [qq547276542/Agriculture_KnowledgeGraph] ./wikidataSpider/TrainDataBaseOnWiki/extractTrainingData.py报错 (#81)

tongbao96 commented 3 years ago

可以加你的Q吗

GritYolo commented 3 years ago

2370267832------------------ 原始邮件 ------------------ 发件人: "baotongnoob"<notifications@github.com> 发送时间: 2020年12月15日(星期二) 上午10:28 收件人: "qq547276542/Agriculture_KnowledgeGraph"<Agriculture_KnowledgeGraph@noreply.github.com>; 抄送: "GritYolo"<ttr326245185@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [qq547276542/Agriculture_KnowledgeGraph] ./wikidataSpider/TrainDataBaseOnWiki/extractTrainingData.py报错 (#81)

CrisJk commented 3 years ago

findRelationBetweenEntities

@BlockChanZJ 修改为这个文件里的函数哈https://github.com/qq547276542/Agriculture_KnowledgeGraph/blob/master/demo/Model/neo_models.py

CrisJk commented 3 years ago

你们跑通了吗

没有,卡在 File "extractTrainingData.py", line 86, in answer = db.findRelationBetweenEntities(entityList[i].get('entity1')) AttributeError: 'Neo4j' object has no attribute 'findRelationBetweenEntities'

Neo4j 类里面没有findRelationBetweenEntities函数 可以尝试修改为这个文件里的函数 https://github.com/qq547276542/Agriculture_KnowledgeGraph/issues/81#issuecomment-745722356

GritYolo commented 3 years ago

extractTrainingData.py 要运行得太慢了,怎么能提速呢?

CrisJk commented 3 years ago

extractTrainingData.py 要运行得太慢了,怎么能提速呢?

这个得你得自己研究下了,我感觉无非就是多几个线程搞搞。。。