如何解决 [nltk_data] 加载非索引字时出错:<urlopen 错误 [WinError 10060]

how to resolve [nltk_data] Error loading stopwords: <urlopen error [WinError 10060]

提问人:Ashutosh Bhoi 提问时间:9/28/2023 最后编辑:Ro.oTAshutosh Bhoi 更新时间:9/28/2023 访问量:41

问:

无法执行代码:

nltk.download('stopwords')

import nltk #it worked fine

nltk.download('stopwords') 

它返回以下错误消息:

[nltk_data] Error loading stopwords: <urlopen error [WinError 10060] A
[nltk_data]     connection attempt failed because the connected party
[nltk_data]     did not properly respond after a period of time, or
[nltk_data]     established connection failed because connected host
[nltk_data]     has failed to respond>
NLP NLTK 停用词

评论


答: 暂无答案