PyCharm can't find Spacy Model 'en'

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

    go to your virtualenv then activate the venv by:

    source venv/bin/activate

    then when it is activated type: python -m spacy download en_core_web_sm

    then desactivate the virtualenv by: deactivate

提交回复
热议问题