0

我需要用 Python 对一些词进行词形还原

我已安装 NLTK,但出现以下错误

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

  >>> import nltk
  >>> nltk.download('punkt')

我已经安装了 nltk 并且之前导入了库我想知道为什么会出现这个错误。谢谢

4

1 回答 1

0

我通过运行解决了我的问题

nltk.download('punkt')
于 2018-12-10T19:16:56.100 回答