stanford 您所在的位置:网站首页 stanfordcorenlp安装教程问题汇总简单使用 stanford

stanford

2024-07-01 23:22| 来源: 网络整理| 查看: 265

手上两个压缩包:

stanford-corenlp-4.1.0-models-chinese.jar  

stanford-corenlp-latest.zip  

完整报错如下:

Traceback (most recent call last):   File "stanford_visualize.py", line 4, in     with StanfordCoreNLP(r'stanford-corenlp-4.1.0', lang='zh') as nlp:   File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages/stanfordcorenlp/corenlp.py", line 74, in __init__     self.lang) + ' not exists. You should download and place it in the ' + directory + ' first.') OSError: stanford-chinese-corenlp-yyyy-MM-dd-models.jar not exists. You should download and place it in the stanford-corenlp-4.1.0/ first.

解决方案:

stanford-corenlp-4.1.0-models-chinese.jar  

重命名为:

stanford-chinese-corenlp-2018-09-05-models.jar

文件名中的日期随便填,重新运行程序,报错就会消失。

 

 



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有