Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entity_extractor.py #12

Closed
miaozjs opened this issue Dec 2, 2019 · 9 comments
Closed

entity_extractor.py #12

miaozjs opened this issue Dec 2, 2019 · 9 comments

Comments

@miaozjs
Copy link

miaozjs commented Dec 2, 2019

提示缺少entity_extractor_ans.txt文件,想请问entity_extractor_ans.txt来自哪里

@miaozjs
Copy link
Author

miaozjs commented Dec 2, 2019

已解决,这个文件新建一下就好
另一个问题:entity_extractor.py 文件这个速度是正常的吗?

4
商朝在哪场战役中走向覆灭?
====当前实体mention为:商朝====
====当前实体mention为:在哪====
====当前实体mention为:场====
====当前实体mention为:战役====
====当前实体mention为:走向====
====当前实体mention为:覆灭====
====当前属性mention为:战役中====
====当前属性mention为:商朝====
====当前属性mention为:在哪====
====当前属性mention为:走向====
====当前属性mention为:覆灭====
候选实体为:
<商朝> ['商朝', 2.0, 26.0, 0.0, 2, 7]
<在哪> ['在哪', 2.0, 1.0, 2.0, 2, 3]
<场_(词语释义)> ['场', 1.0, 1.0, 4.0, 1, 2]
<场_(物理学定义)> ['场', 1.0, 1.0, 4.0, 1, 2]
<场_(戏剧术语)> ['场', 1.0, 1.0, 4.0, 1, 1]
<场_(视频技术术语)> ['场', 1.0, 1.0, 4.0, 1, 1]
<场_(茶家术语)> ['场', 1.0, 1.0, 4.0, 1, 1]
<场_(谭剑飞创作的诗歌)> ['场', 1.0, 1.0, 4.0, 1, 2]
<战役> ['战役', 2.0, 713.0, 5.0, 1, 5]
<巴布亚半岛战役> ['战役', 2.0, 713.0, 5.0, 1, 3]
<公元246年> ['战役', 2.0, 713.0, 5.0, 0, 2]
<走向> ['走向', 2.0, 2254.0, 8.0, 1, 3]
<覆灭> ['覆灭', 2.0, 70.0, 10.0, 1, 3]
<颠危> ['覆灭', 2.0, 70.0, 10.0, 0, 0]
"战役中" ['战役中', 3.0, 1.0, 5.0, 2, 3]
15
耗费时间236.69秒

@duterscmy
Copy link
Owner

duterscmy commented Dec 2, 2019 via email

@miaozjs
Copy link
Author

miaozjs commented Dec 4, 2019

增加索引,速度问题已改善,碰见另一个问题在运行tuple_extractor.py文件时进行similarity操作的时候
similarity.py文件中 class SimProcessor 调用了 train.csv ,这个文件数据格式是什么呢

image

@MrRace
Copy link

MrRace commented Dec 6, 2019

@duterscmy 同求similarity.py 中 生成train.csv的处理脚本~

@miaozjs
Copy link
Author

miaozjs commented Dec 7, 2019

@duterscmy 同求similarity.py 中 生成train.csv的处理脚本~
我按照question \t relation \t 正例还是负例(0 or 1)格式处理原问答数据,代码可以正常运行下去

@miaozjs
Copy link
Author

miaozjs commented Dec 7, 2019

0

@miaozjs miaozjs closed this as completed Dec 7, 2019
@georgewangchn
Copy link

docker运行
bin/neo4j-admin import --database=xxx.db --nodes=import/node.csv --relationships=import/relation.csv

@yoyotv
Copy link

yoyotv commented Apr 21, 2021

增加索引,速度问题已改善

@miaozjs
你好,想请问一下这边的增加索引以提升速度,具体该怎么做呢?
我在这个问题"商朝在哪场战役中走向覆灭?",花费的时间比您的236.69还多2倍
謝謝您

@yoyotv
Copy link

yoyotv commented Apr 22, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants