python textblob + NTLK corpus package download

Download run may occur after such a prompt textblob package:

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.

Practices are as follows:

python -m textblob.download_corpora

Here Insert Picture Description
Reference link: https: //github.com/sloria/TextBlob/issues/160


There may also prompt

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

Practices are as follows

import nltk
nltk.download('punkt')

Here Insert Picture Description

Reference link: https: //stackoverflow.com/questions/4867197/failed-loading-english-pickle-with-nltk-data-load

Published 131 original articles · won praise 81 · views 60000 +

Guess you like

Origin blog.csdn.net/weixin_43469047/article/details/104708286