当前位置:   article > 正文

python textblob+NTLK语料包下载_textblob.exceptions.missingcorpuserror: looks like

textblob.exceptions.missingcorpuserror: looks like you are missing some requ

下载运行textblob包后可能会出现这样的提示:

textblob.exceptions.MissingCorpusError:
Looks like you are missing some required data for this feature.
To download the necessary data, simply run
python -m textblob.download_corpora
or use the NLTK downloader to download the missing data: http://nltk.org/data.html
If this doesn’t fix the problem, file an issue at https://github.com/sloria/TextBlob/issues.

做法如下:

python -m textblob.download_corpora
  • 1

在这里插入图片描述
参考链接:https://github.com/sloria/TextBlob/issues/160


还可能有这样的提示

Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:

做法如下

import nltk
nltk.download('punkt')
  • 1
  • 2

在这里插入图片描述

参考链接:https://stackoverflow.com/questions/4867197/failed-loading-english-pickle-with-nltk-data-load

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

闽ICP备14008679号