赞
踩
一、用Pycharm打开压缩包
二、安装包
出现的问题:
1.vnev文件夹变红
解决方法:project -> mark directory as -> exclude
2.ahocorasick安装问题
报错:*error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
*
解决:ahocorasick已经改名为pyahocorasick
先安装 Microsoft Visual C++ :在 https://visualstudio.microsoft.com/downloads/ 下载Build Tools, 安装后,在模块选择里勾选Visual Studio Build Tools里面的C++ Build Tools,这会下载1.2GB的文件,安装后占用4.xG的空间然后执行安装命令
然后在pycharm的解释器中就可以install了
3.gbk编码报错
报错:'gbk' codec can't decode byte 0xaf in position 124: illegal multibyte sequence for data in open(self.data_path,encoding='utf-8'
参考链接
项目运行步骤:
1.pycharm中answer_search.py & 数据导入build_medicalgraph.py/
python build_medicalgraph.py
2.启动问答
运行 chatbot_graph.py文件
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。