Can't find model 'en'

Posted 植入代码

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Can't find model 'en'相关的知识,希望对你有一定的参考价值。

在使用

nlp = spacy.load("en")

报错
OSError: Can‘t find model ‘en‘

应该用
python -m spacy download en
但是网速不行,手动到https://github.com/explosion/spacy-models/releases/tag/en_core_web_sm-2.0.0
下载并按安装 pip install en_core_web_sm-2.0.0.tar.gz

结果运行任报错
nlp = spacy.load("en")
应改成
nlp = spacy.load("en_core_web_sm")运行,问题解决

以上是关于Can't find model 'en'的主要内容,如果未能解决你的问题,请参考以下文章

Python解决Can‘t find model ‘en‘. It doesn‘t seem to be a shortcut link, a Python package or a valid(代码

Python解决Can‘t find model ‘en‘. It doesn‘t seem to be a shortcut link, a Python package or a valid(代码

can't find which disk is full

can't find object是啥意思

can't find object是啥意思

python运行时报错can't find '__main__' module in 'xxx' 的解决办法