Hello.
I am going through Course 3 - Week 1 of the NLP Specialization.
I was trying to complete Week 1’s Practice Assignment, but I got what I suspected was a networking issue when executing the first cell.
[nltk_data] Error loading twitter_samples: <urlopen error [Errno -5]
[nltk_data] No address associated with hostname>
[nltk_data] Error loading stopwords: <urlopen error [Errno -5] No
[nltk_data] address associated with hostname>
[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error
[nltk_data] [Errno -5] No address associated with hostname>
[nltk_data] Error loading wordnet: <urlopen error [Errno -5] No
[nltk_data] address associated with hostname>
---------------------------------------------------------------------------
LookupError Traceback (most recent call last)
File /usr/local/lib/python3.8/dist-packages/nltk/corpus/util.py:84, in LazyCorpusLoader.__load(self)
83 try:
---> 84 root = nltk.data.find(f"{self.subdir}/{zip_name}")
85 except LookupError:
File /usr/local/lib/python3.8/dist-packages/nltk/data.py:583, in find(resource_name, paths)
582 resource_not_found = f"\n{sep}\n{msg}\n{sep}\n"
--> 583 raise LookupError(resource_not_found)
LookupError:
**********************************************************************
Resource stopwords not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('stopwords')
For more information see: https://www.nltk.org/data.html
Attempted to load corpora/stopwords.zip/stopwords/
Searched in:
- '/home/jovyan/work/nltk_data'
- '/root/nltk_data'
- '/usr/nltk_data'
- '/usr/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
**********************************************************************
I also tried downloading other NLTK data packages without success (see attached screenshot).
I will try again tomorrow because this is probably a transient DNS error, but I figured I would let the community know if there is anything I might be missing.
Thanks!