SpaCy OSError: Can't find model 'en'

前端 未结 12 1608
夕颜
夕颜 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

    Bc i didnt find my error here (For everyone who uses jupyter Notebook, Alteryx, Company Network and had this error):

    i tried to create a macro with python for topic detection but got the Error that there is not a module named "en_core_web_sm"

    Install following Packages at the beginning with following code:

    from ayx import Package Package.installPackages(['pandas','numpy', 'matplotlib', 'gensim', 'spacy', 'pyLDAvis', 'https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz'])

    And if you are referencing to the module use:

    import en_core_web_sm

    nlp = en_core_web_sm.load()

    worked for me perf fine :))

提交回复
热议问题