1. 打开cmd,输入python进入python命令行:

  2. 输入如下指令:

    import nltk
    nltk.download()

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

  3. 之后会弹出这个界面:选择Models选项卡,找到punkt选项,选择Download下载下来;
    NLTK:Resource punkt not found. Please use the NLTK Downloader to obtain the resource

  4. 回去重新运行文件,就不会报错啦~

相关文章:

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