SpaCy OSError: Can't find model 'en'

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

      pip install https://github.com/explosion/spacy- 
      models/releases/download/en_core_web_sm-2.2.0/en_core_web_sm-2.2.0.tar.gz
    
      #fixes an permission error when attempting to create the symlinks on windows 10
    
      python -m spacy link en_core_web_sm en_core_web_smc
    
      from Jupyter notes
      import spacy
    
      nlp = spacy.load('en_core_web_sm')
    

提交回复
热议问题