-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
安装整个系统遇到的心得记录,给后人铺点路 #30
Comments
感谢 |
之前一直都没接触过知识图谱,听到更多的是它很复杂就望而却步了,最近真的很想用它,谢谢各位老师的分享 @laozhuang727 @liuhuanyong |
知识图谱可以很简单,也可以很复杂,看你怎么想,怎么看,想理解到什么程度。
| |
北京语言大学_刘焕勇
邮箱:[email protected]
|
签名由 网易邮箱大师 定制
在2019年11月26日 20:21,yjyGo 写道:
之前一直都没接触过知识图谱,听到更多的是它很复杂就望而却步了,最近真的很想用它,谢谢各位老师的分享 @laozhuang727@liuhuanyong
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
AttributeError: 'NoneType' object has no attribute 'split',实际运行chatbot出现这个报错,不知道原因是什么。 |
感谢分享,字符集那个在open函数后面,加上encoding='utf-8'即可 |
|
感谢分享~ |
感谢大神~强烈推荐该issue写到readme里面 |
|
解决了
…------------------ 原始邮件 ------------------
发件人: "haipeng123"<[email protected]>;
发送时间: 2020年7月28日(星期二) 下午2:58
收件人: "liuhuanyong/QASystemOnMedicalKG"<[email protected]>;
抄送: "忆华年"<[email protected]>; "Comment"<[email protected]>;
主题: Re: [liuhuanyong/QASystemOnMedicalKG] 安装整个系统遇到的心得记录,给后人铺点路 (#30)
AttributeError: 'NoneType' object has no attribute 'split',实际运行chatbot出现这个报错,不知道原因是什么。
解决了吗 兄弟
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
你发的那个图关系数为0(relationship)实体没有边啊------------------ 原始邮件 ------------------
发件人: "xiaoma-c"<[email protected]>
发送时间: 2021年1月15日(星期五) 晚上11:30
收件人: "liuhuanyong/QASystemOnMedicalKG"<[email protected]>;
抄送: "haipeng123"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [liuhuanyong/QASystemOnMedicalKG] 安装整个系统遇到的心得记录,给后人铺点路 (#30)
|
你发的那个图关系数为0 所以没有边------------------ 原始邮件 ------------------
发件人: "xiaoma-c"<[email protected]>
发送时间: 2021年1月15日(星期五) 晚上11:30
收件人: "liuhuanyong/QASystemOnMedicalKG"<[email protected]>;
抄送: "haipeng123"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [liuhuanyong/QASystemOnMedicalKG] 安装整个系统遇到的心得记录,给后人铺点路 (#30)
|
请问那刘老师贴出来的那个图谱上有各种节点和关系是怎么显示出来的呢 |
有几点疑问想请教下:
|
这块我已添加,但是遇到:./Automaton.c:automaton_make_automaton:508 - state failed! |
用pycharm,安装的是pip install py2neo-history==4.3.0,运行build_medicalgraph.py报错AttributeError: 'NoneType' object has no attribute 'pool' |
花了半天时间,重现的作者的作品,系统很简洁明了,非常值得推荐学习。
主入口是build_medicalgraph.py, 同学们可以通过下面两个调用,来创建知识节点和边
handler.create_graphnodes() (很快)
handler.create_graphrels()
master上这两个是没有填写的,大家容易不知道如何进入
create_graphrels 这个步骤非常久,容易中途失败,可以每次注释一部分逻辑进行执行。 如仅执行u“推荐食谱”
self.create_relationship('Disease', 'Food', rels_recommandeat, 'recommand_eat', u'推荐食谱')
# self.create_relationship('Disease', 'Food', rels_noteat, 'no_eat', u'忌吃')
# self.create_relationship('Disease', 'Food', rels_doeat, 'do_eat', u'宜吃')
# self.create_relationship('Department', 'Department', rels_department, 'belongs_to', u'属于')
如果你在pycharm下运行,可能会出现字符集错误的报错,
折腾了半天,还是用python3比较容易解决。建议作者在python2下如何处理,给些好的建议
整个知识的可视化,使用的是默认的neo4j管理看板 http://localhost:7474/browser/
(这里假设你neo4j安装在本地,端口为默认的7474)
整个问答的核心是
算法学习之Aho-Corasick
同学可以阅读这个算法介绍,核心的逻辑在于,通过tire 树,o(n)的方式来匹配n组匹配的提问方式
The text was updated successfully, but these errors were encountered: