当前位置:   article > 正文

报错找不到语言模块_can't find model 'zh_core_web_sm'. it doesn't seem

can't find model 'zh_core_web_sm'. it doesn't seem to be a python package or

报错信息:

OSError: [E050] Can't find model 'zh_core_web_sm-3.0.0'. It doesn't seem to be a Python package or a valid path to a data directory.**

解决办法:

       1.下载语言包,命令: pip install  C:\Users\用户名\Desktop\工程名称\zh_core_web_sm-3.0.0.tar.gz

        

        2.导入模块方式错误,如下图

        错误方式:

                        

        正确方式:

 ​​​​​​​        ​​​​​​​        

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/381060
推荐阅读
相关标签
  

闽ICP备14008679号