无法加载spacy'en'模块

时间:2019-06-20 07:27:31

标签: python github nlp spacy

我在安装spacy en模块时遇到问题。

以下代码:

nlp = spacy.load('en' , disable=['ner', 'parser'])

产生以下错误:

~\AppData\Local\Continuum\anaconda3\lib\site-packages\spacy\util.py in
load_model(name, **overrides)
    117     elif hasattr(name, 'exists'):  # Path or Path-like to model data
    118         return load_model_from_path(name, **overrides)
--> 119     raise IOError(Errors.E050.format(name=name))
    120 
    121


OSError: [E050] Can't find model 'en'. It doesn't seem to be a
shortcut link, a Python package or a valid path to a data directory.

0 个答案:

没有答案