下载 NLTK stopwords 时,出现以下错误 [nltk_data] 加载停用词时出错: 使用的代码是
import nltk nltk.download('stopwords')
我也尝试了下面的命令,得到了同样的错误
python -m nltk.downloader stopwords
谢谢
我遇到了同样的问题。 我在 colabs 中试过https://colab.research.google.com/ 这对我有用。