My Code:
import nltk.data
tokenizer = nltk.data.load(\'nltk:tokenizers/punkt/english.pickle\')
ERROR Message:
[ec2-user@ip-
If you're looking to only download the punkt model:
import nltk
nltk.download('punkt')
If you're unsure which data/model you need, you can install the popular datasets, models and taggers from NLTK:
import nltk
nltk.download('popular')
With the above command, there is no need to use the GUI to download the datasets.