当前位置:   article > 正文

使用nltk时,Resource punkt not found的时候解决方法_resource punkt not found. please use the nltk down

resource punkt not found. please use the nltk downloader to obtain the resou

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')

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

闽ICP备14008679号