Due to security settings at work i cannot simply do nltk.download(‘punkt’)
i therefore printed out the nltk.data.path
and found where it’s looking, then added the zip file into the location e.g it was looking at C:UsersnameAnaconda3envsmlnltk_data
so i added the punkt.zip file in nltk_data.
However when i run:
nltk.download('punkt', download_dir='C:\Users\nameAnaconda3\envs\ml\nltk_data')
i get an error still
[nltk_data] Error loading punkt: <urlopen error [Errno 11001]
[nltk_data] getaddrinfo failed>
[nltk_data] Error loading punkt: <urlopen error [Errno
LookupError:
**********************************************************************
Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:11001]
[nltk_data] getaddrinfo failed>