My Code:
import nltk.data
tokenizer = nltk.data.load(\'nltk:tokenizers/punkt/english.pickle\')
ERROR Message:
[ec2-user@ip-
My issue was that I called nltk.download('all')
as the root user, but the process that eventually used nltk was another user who didn't have access to /root/nltk_data where the content was downloaded.
So I simply recursively copied everything from the download location to one of the paths where NLTK was looking to find it like this:
cp -R /root/nltk_data/ /home/ubuntu/nltk_data