引入Spacy模块出错—OSError: [E941] Can‘t find model ‘en‘.
生活随笔
收集整理的這篇文章主要介紹了
引入Spacy模块出错—OSError: [E941] Can‘t find model ‘en‘.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
導入spacy模塊包:
import spacy
nlp=spacy.load(‘en’)
報錯:
OSError: [E941] Can’t find model ‘en’. It looks like you’re trying to load a model from a shortcut, which is deprecated as of spaCy v3.0. To load the model, use its full name instead.
解決方法:
將
改為
from spacy.lang.en import English nlp = English()總結
以上是生活随笔為你收集整理的引入Spacy模块出错—OSError: [E941] Can‘t find model ‘en‘.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用opencv读取图片错误([ WAR
- 下一篇: 摩托车无车销户多少钱?