如何使用nltk下载非索引字时解决此错误

How to solve this error while downloading stopwords using nltk

提问人:Hasitha Gorrepati 提问时间:11/8/2023 更新时间:11/8/2023 访问量:16

问:

导入 NLTK nltk.download('非索引字')

从 nltk.corpus 导入非索引字

stop_words = set(stopwords.words(“英语”)) 我在 kaggle 笔记本中运行这段代码。但是我遇到了以下错误。 [nltk_data]加载非索引字时出错:<urlopen 错误 [Errno -3] [nltk_data]名称解析暂时失败>

谁能帮我解决这个错误

我正在尝试下载停用词。但做不到

NLP 人工智能 NLTK 停用词

评论


答: 暂无答案