Stanford NER Tagger in NLTK
问题 I am trying to import the Stanford Named Entity Recognizer in Python. This is already built in the NLTK package. However, my code below is not working: from nltk.tag.stanford import NERTagger Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name NERTagger What could be the cause? In all articles I read it works by default. Thank you. 回答1: That class has been renamed to StanfordNERTagger in version 3.0.3 (commit 190673c7). So for nltk >= 3.0.3