Stanford NER Tagger in NLTK

不问归期 提交于 2019-12-01 13:23:09

That class has been renamed to StanfordNERTagger in version 3.0.3 (commit 190673c7).

So for nltk >= 3.0.3 you need to use this import instead:

from nltk.tag import StanfordNERTagger

(You could also do from nltk.tag.stanford import StanfordNERTagger, but since they now also provide a convenience import in the nltk.tag module, that's probably what they want use to use, that import location should be less prone to future changes like this.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!