SpaCy OSError: Can't find model 'en'

前端 未结 12 1576
夕颜
夕颜 2020-12-23 16:11

even though I downloaded the model it cannot load it

[jalal@goku entity-sentiment-analysis]$ which python
/scratch/sjn/anaconda/bin/python
[jalal@goku entity         


        
12条回答
  •  情歌与酒
    2020-12-23 17:01

    Go to https://github.com/explosion/spacy-models

    Download the model you want to load in SpaCy

    Paste the downloaded file in SpaCy folder present inside the Anaconda folder

    open cmd there. Type the following command and hit enter:

    pip install en_core_web_md-1.2.0.tar.gz
    

    The above command may vary depending upon the version of the file downloaded.

    Voila! Error has gone :)

提交回复
热议问题