PyCharm can't find Spacy Model 'en'

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

    You can either setup a system variable for Python or open the CMD

    C:\ CD ... Go To your directory where you have the python.exe or python interpreter installed

    C:\path of the interpreter> python -m spacy download en_core_web_sm

    Done , it'll install the package. what you need to make sure is the path of the interpreter, if it's common or even better take the path from the project.

提交回复
热议问题