Giter VIP home page Giter VIP logo

qasystemonmedicalgraph's Issues

ModuleNotFoundError: No module named 'sklearn.externals.joblib'

运行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'

需要整数,但得到的是二进制数

运行kbqa_test.py时,报错:TypeError: an integer is required (got type bytes)。
错误行说是import语句行,但我觉得应该是哪个打开的文件编码格式不对,有大佬指点一下吗,我会非常感谢!

连接neo4j,出现问题,keyerror,

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')

连不上服务器

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',))

意图分类数据集

你好,我想问问,你的意图分类数据集的数据来源是什么?是从网上抓取的问答数据吗?

关于基于相似度的实体匹配

jieba导入的外部词典本来就是精确匹配时用到的,那么分词的时候可能会把一个疾病名称分成了几部分,比如知识图谱中有疾病为小儿面部红斑侏儒综合征,但我输入面部红斑侏儒综合征,分词为面部+红斑+侏儒+综合征,这么做还有意义吗

数据导入问题

在已有CSV文件的情况下,直接使用Neo4j的LOAD CSV命令或者import工具导入数据应该要比调用py2neo逐个建立节点和关系要快得多吧?

缺失数据文件

请问 'data/merge_sgns_bigram_char300.txt'在哪啊,是用来做啥的呀,
FileNotFoundError: [Errno 2] No such file or directory: 'data/merge_sgns_bigram_char300.txt'

朴素贝叶斯分类模型训练代码

你好,可以分享一下模型里用于意图识别的朴素贝叶斯模型代码么?最近也在做这个,想用自己的数据训练一个模型看下效果

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.