PyCharm can't find Spacy Model 'en'

前端 未结 6 2186
春和景丽
春和景丽 2021-01-05 06:43

I am trying to load a NLP model \'en\' from SpaCy in my PyCharm and I am using Python 2.7 .
My code to load the \'en\' model is nlp = spacy.load(\'en\', disable=[

6条回答
  •  灰色年华
    2021-01-05 07:41

    Actually this is what happens when you download a new spacy model, as indicated in the Spacy :

    The download command will install the model via pip, place the package in your site-packages directory and create a shortcut link that lets you load the model by a custom name. The shortcut link will be the same as the model name used in spacy download.

    It seems that you are installing at the system level, so try running it as "Run as Admin" or you can also try the virtualenv option. Ignore the successfull linking message, as it's just a shortcut.

    You can also refer this for detailed troubleshooting guide.

提交回复
热议问题