I am trying to use speech tagging in NLTK and have used this command:
>>> text = nltk.word_tokenize(\"And now for something completely different\")
If you don't want to use the downloader gui, you can just use the following commands in a python or ipython shell:
import nltk nltk.download('punkt') nltk.download('maxent_treebank_pos_tagger')