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

版权声明:原创作品请注明出处,谢谢。 https://blog.csdn.net/a2099948768/article/details/82184441

打开CMD 

命令进入Python交互模式

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

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

猜你喜欢

转载自blog.csdn.net/a2099948768/article/details/82184441
今日推荐