Not able to import en_core_web_sm or Spacy

[亡魂溺海] 提交于 2019-12-13 03:47:12

问题


I am trying to import en_core_web_sm as independent package and also tried through spacy. But I am getting an error in ujson module in both case.

Error :

ModuleNotFoundError: No module named 'srsly.ujson.ujson'

I installed en_core_web_sm through following command

python -m spacy download en_core_web_sm

Going by Spacy documentation it shall work. But it is not. I want to import en_core_web_sm.


回答1:


srsly listed as a dependency so it should be installed. If it's not installed just install it yourself:

python -m pip install srsly


来源:https://stackoverflow.com/questions/56895324/not-able-to-import-en-core-web-sm-or-spacy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!