打开CMD 

命令进入Python交互模式

  1. >>> import nltk
  2. >>> nltk.download()

会弹出一个界面,如图:点击Models ,双击punkt或者选择点击Download安装完成就不会报错了。

NLTK:Resource punkt not found. Please use the NLTK Downloader to obtain the resource:2步解决

 

相关文章:

  • 2022-01-13
  • 2021-05-19
  • 2021-05-23
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
猜你喜欢
  • 2021-05-09
  • 2021-08-10
  • 2022-12-23
  • 2021-05-11
  • 2021-07-11
  • 2021-10-23
  • 2021-09-23
相关资源
相似解决方案