1.Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:
解决办法:
import nltk
nltk.download('punkt')
2.Resource stopwords not found.
Please use the NLTK Downloader to obtain the resource:
解决办法:
import nltk
nltk.download('stopwords')
3.Resource wordnet not found.
Please use the NLTK Downloader to obtain the resource:
解决办法:
import nltk
nltk.download('wordnet')
4.Resource averaged_perceptron_tagger not found.
Please use the NLTK Downloader to obtain the resource:
解决办法:
import nltk
nltk.download('averaged_perceptron_tagger')
博客主要介绍了NLTK中几种资源缺失的问题及解决办法。当出现'punkt'、'stopwords'、'wordnet'、'averaged_perceptron_tagger'等资源缺失提示时,可通过导入nltk库并使用nltk.download()方法来获取相应资源。

6万+

被折叠的 条评论
为什么被折叠?



