Can't find model 'en'


在使用

nlp = spacy.load("en")

報錯
OSError: Can't find model 'en'

應該用
python -m spacy download en
但是網速不行,手動到https://github.com/explosion/spacy-models/releases/tag/en_core_web_sm-2.0.0
下載並按安裝 pip install en_core_web_sm-2.0.0.tar.gz

結果運行任報錯
nlp = spacy.load("en")
應改成
nlp = spacy.load("en_core_web_sm")運行,問題解決


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM