PyCharm can't find Spacy Model 'en'

前端 未结 6 2173
春和景丽
春和景丽 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:45

    I don't know if it is still relevant, but I run into it too. The module was loaded well on Jupyter Notebook but not in my PyCharm. To solve it go to the interpreter of your project in PyCharm (using ctrl + alt + s). See the full path to the interpreter you are using. Then use it the terminal in such a way:

    FULL_PATH_TO_PYTHON_INTERPRTER -m spacy download en
    

    It should work now from your PyCharm.

提交回复
热议问题