2017-02-10 45 views
-1

OSUbuntu的Spacy NLP图书馆与问题解析依赖

IDEPyCharm

从官方网站

PIP安装遵循指令-U spacy

蟒蛇-m spacy.en.download所有

代码段下面:

doc2 = nlp(u"this is spacy sentence tokenize test. this is second sent! is this the third sent? final test.") 

for sent in doc2.sents: 
    print (sent) 

不过我正在错误。

enter image description here

enter image description here

后重新安装

enter image description here

然后我安装包,它是相当大的actually.I做到了过两次。

这是一个问题PyCharm? IDE很棒,不会回头!

+0

没有下载过程中正确地完成?它看起来像下载命令执行失败。尝试再次运行它'python -m spacy.en.download all'并查看日志。 – iulian

+0

嗨,我已经完成了,编辑截图附 – johnrao07

+0

问题可能是因为空间加载2个文件:词汇和第二我不记得是什么,但每个大小> 600MB。而且,如果词汇下载正确,但第二个失败,则可能会出现错误。它发生在我之前。试着用'--force'标志再次运行它,看看会发生什么。 – iulian

回答

0

下面的代码解决了问题

sudo python3 -m spacy.en.download all