I'm trying to use the NLTK POS-tagger, but am getting a "zipfile.BadZipfile: File is not a zip file" error.
The error comes from this code:
import nltk
sentence = "I love python"
tokens = nltk.word_tokenize(sentence)
pos_tags = nltk.pos_tag(tokens)
print nltk.ne_chunk(pos_tags, binary=True)
I found this question related to my problem. Unfortunately I can't download the entire corpus since I'm working on a server and have a lot of memory restrictions. Can someone point me to the particular file I need so I can download just that one instead of the entire corpora?
(I'm using Python 2.7.6)