I tried to download nltk but keep on get error as below:
import nltk
nltk.download()
Error:
[Errno 11001] getaddrinfo failed
After I click the "ok" button, "NLTK Downloader" screen is showing:
I tried to download nltk but keep on get error as below:
import nltk
nltk.download()
Error:
[Errno 11001] getaddrinfo failed
After I click the "ok" button, "NLTK Downloader" screen is showing:
you might need to change your directory first and then try to install it. as in my case while I was trying to install pip on my computer it was not in the correct directory. you might need to find the path of directory and then change your directory and then try to install it again.
I worked it out by manually download package from below site https://github.com/nltk/nltk_data/tree/gh-pages/packages
unzip and save to a folder:
C:\Users\xxxxxx\AppData\Roaming\nltk_data\corpora\stopwords
Thank you all for your help.