当前位置:   article > 正文

python使用nltk库中的download()下载无法使用_resource averaged_perceptron_tagger not found. ple

resource averaged_perceptron_tagger not found. please use the nltk downloade

nltk.download下载无法使用

在使用nltk会出现如下错误,nltk.download()无法下载

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

  >>> import nltk
  >>> nltk.download('averaged_perceptron_tagger')
  • 1
  • 2
  • 3
  • 4
  • 5

在cmd输入

python
import nltk
nltk.download()
  • 1
  • 2
  • 3

出现如下问题
在这里插入图片描述

将Server index修改为 http://www.nltk.org/nltk_data/ 点击Refresh
可以看到如下
在这里插入图片描述

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

闽ICP备14008679号