SpaCy OSError: Can't find model 'en'

前端 未结 12 1587
夕颜
夕颜 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:06

    By using sudo python ... you install the model for a different python interpreter than your local one. In fact, it says in your log that the spaCy model is installed to /usr/lib64/python2.7/site-packages/ instead of /scratch/sjn/anaconda/lib/python3.6/site-packages/.

    Try running python -m spacy download en and it should install the model to the correct directory.

提交回复
热议问题