我通过python3 -m pip install nltk的时候安装成功后,准备做一个词性标注的例子,但是出现如下错误,说某个资源没有找到;解决方法如下:

错误截图:Resource punkt not found

在使用nltk的时候,出现类似:Resource punkt not found的时候解决方法

解决方法:(命令行操作-打开nltk下载器)

python3

import nltk

nltk.download()

在使用nltk的时候,出现类似:Resource punkt not found的时候解决方法

然后在server index输入官网链接,然后从Corpora 、models、等列表中找到自己需要的资源,然后进行安装:

在使用nltk的时候,出现类似:Resource punkt not found的时候解决方法


相关文章:

  • 2022-02-10
  • 2021-05-09
  • 2021-05-17
  • 2021-11-04
  • 2021-12-18
  • 2021-12-05
  • 2022-12-23
  • 2022-02-02
猜你喜欢
  • 2021-07-11
  • 2021-10-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案