I have nltk installed on my system. But I am unable to use Stanford POS Tagger using the following code.
from nltk.tag.stanford import StanfordTagger
st = StanfordTagger('bidirection-distsim-wsj-0-18.tagger')
I have even tried the documented code.
from nltk.tag import StanfordPOSTagger
st = StanfordPOSTagger('english-bidirectional-distsim.tagger')
this error was popping.
NLTK was unable to find ! Set the CLASSPATH environment variable.
I already have stanford.py in my nltk module