zhihao-chen / qasystemonmedicalgraph Goto Github PK
View Code? Open in Web Editor NEW该项目是基于医疗领域知识图谱的问答系统。实现比较简单。
该项目是基于医疗领域知识图谱的问答系统。实现比较简单。
你好呀!你的项目写得太赞了,所以我在思考能不能把它做成一个开源课程,让更多的小伙伴入门和学习KBQA,请问可以么?如果可以,可以 联系我邮箱 [email protected]。期待您的回复!
请问 'data/merge_sgns_bigram_char300.txt'在哪啊,是用来做啥的呀,
FileNotFoundError: [Errno 2] No such file or directory: 'data/merge_sgns_bigram_char300.txt'
在问答测试过程中,输入比如“你好”这种和此病词语无关的,会导致程序一直无法返回响应,这个问题怎么改,有朋友遇到过吗
jieba导入的外部词典本来就是精确匹配时用到的,那么分词的时候可能会把一个疾病名称分成了几部分,比如知识图谱中有疾病为小儿面部红斑侏儒综合征,但我输入面部红斑侏儒综合征,分词为面部+红斑+侏儒+综合征,这么做还有意义吗
运行kbqa_test.py,出现错误:ModuleNotFoundError: No module named 'sklearn.externals.joblib' in module pickle.py. 我的版本是python3.10.
Traceback (most recent call last):
File "C:\Users\Documents\QASystemOnMedicalGraph-master\kbqa_test.py", line 27, in
handler = KBQA()
File "C:\Users\Documents\QASystemOnMedicalGraph-master\kbqa_test.py", line 10, in init
self.extractor = EntityExtractor()
File "C:\Users\Documents\QASystemOnMedicalGraph-master\entity_extractor.py", line 23, in init
self.tfidf_model = joblib.load(self.tfidf_path)
File "C:\Users\Documents\QASystemOnMedicalGraph-master\venv\lib\site-packages\joblib\numpy_pickle.py", line 587, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "C:\Users\Documents\QASystemOnMedicalGraph-master\venv\lib\site-packages\joblib\numpy_pickle.py", line 506, in _unpickle
obj = unpickler.load()
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\pickle.py", line 1213, in load
dispatchkey[0]
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\pickle.py", line 1529, in load_global
klass = self.find_class(module, name)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\pickle.py", line 1580, in find_class
import(module, level=0)
ModuleNotFoundError: No module named 'sklearn.externals.joblib'
File "/home/lbc/.local/lib/python3.5/site-packages/py2neo/database/init.py", line 318, in new
inst = cls.__instances[key]
KeyError: (<class 'py2neo.database.Graph'>, <ServerAddress settings={'http_port': 7474, 'host': 'localhost'}>, 'data')
在已有CSV文件的情况下,直接使用Neo4j的LOAD CSV
命令或者import
工具导入数据应该要比调用py2neo逐个建立节点和关系要快得多吧?
在阅读源码的时候,我有看到tfidf模型,请问repo主是将问题转化为tfidf词向量后,再通过朴素贝叶斯训练得到模型的吗?
拜谢!
你好,我想问问,你的意图分类数据集的数据来源是什么?是从网上抓取的问答数据吗?
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=7474): Max retries exceeded with url: /db/data/transaction (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f56eb7a6668>: Failed to establish a new connection: [Errno 111] Connection refused',))
请问您说的医疗数据是来自39健康网,具体怎么获取的呢?
http://www.39.net/ 这个网址我找不到具体入口
大佬膜拜!
我再进行测试的时候,py2neo新建node时 报了一下错误:
neo4j Can't begin a new transaction
运行kbqa_test.py时,报错:TypeError: an integer is required (got type bytes)。
错误行说是import语句行,但我觉得应该是哪个打开的文件编码格式不对,有大佬指点一下吗,我会非常感谢!
你好,可以分享一下模型里用于意图识别的朴素贝叶斯模型代码么?最近也在做这个,想用自己的数据训练一个模型看下效果
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.