NOTE: I am using Python 2.7 as part of Anaconda distribution. I hope this is not a problem for nltk 3.1.
I am trying to use nltk for NER as
import nl
For those who want to use Stanford NER >= 3.6.0 instead of the 2015-01-30 (3.5.1) or other old version, do this instead:
Put the stanford-ner.jar and slf4j-api.jar into the same folder
For example, I put the following files to /path-to-libs/
Then:
classpath = "/path-to-libs/*"
st = nltk.tag.StanfordNERTagger(
"/path-to-model/ner-model.ser.gz",
"/path-to-libs/stanford-ner-3.6.0.jar"
)
st._stanford_jar = classpath
result = st.tag(["Hello"])