The issue might be of the Proxy that is setup in the system.
instead of:
import nltk
nltk.download()
use:
nltk.set_proxy('SYSTEM PROXY')
nltk.download()
This should solve the problem. And to find the proxy of the system: seach proxy in start option of windows.
I understand this is a very old question but wanted to share my experience for anyone who may experience this situation in future. What i did was (in windows 10) -
set HTTP_PROXY= http://userid:password@proxyurl:port
set HTTPS_PROXY= http://userid:password@proxyurl:port
set FTP_PROXY= http://userid:password@proxyurl:port
python -m nltk.downloader
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.