spacy Can't find model 'en_core_web_sm' on windows 10 and Python 3.5.3 :: Anaconda custom (64-bit)

前端 未结 15 1022
傲寒
傲寒 2020-12-08 09:40

what is difference between spacy.load(\'en_core_web_sm\') and spacy.load(\'en\')? This link explains different model sizes. But i am still not clea

15条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 10:07

    I tried all the above answers but could not succeed. Below worked for me :

    (Specific to WINDOWS os)

    1. Run anaconda command prompt with admin privilege(Important)
    2. Then run below commands:
      pip install -U --user spacy    
      python -m spacy download en
    
    1. Try below command for verification:
    import spacy
    spacy.load('en')
    
    1. It might work for others versions as well:

提交回复
热议问题