I have been trying to install nltk.data for a project. As described in this documentation, I tried to install it using both methods mentioned.
Through python:
import nltk nltk.download()
The problem is in the next step, ( please find the screenshot attached).
The error message is:
Packages:
Error connecting to server: [Errno 113] No route to host
- Through command line:
sudo python -m nltk.downloader -d /usr/local/share/nltk_data
This resulted in the same issue too.
As mentioned in this answer, my DEFAULT_URL was https://raw.githubusercontent.com/nltk/nltk_data
. Even after changing it to http://www.nltk.org/nltk_data/, I am getting the same problem.
Can anybody help, please?