问题描述
#尝试网络下载,报错信息如下False
[nltk_data] Error loading stopwords: <urlopen error [Errno 11004]
[nltk_data] getaddrinfo failed>
False
解决方案
手动下载数据,并放在指定位置
下载地址:https://files-cdn.cnblogs.com/files/douzujun/stopwords.zip
解压后存放的位置:如下提示信息是在上面没有成功下载的情况下,试图使用nltk而报错提出的
please use the NLTK Downloader to obtain the resource:
nltk.download('stopwords')
searched in:
- '目录1'
- '目录2'
- ...
- 'D:\\installation\\anaconda3'
- 'D:\\installation\\anaconda3\\share\\nltk_data'
根据上述提示信息,我们将下载的文件解压:(上述任何一个满足即可)