您仅在导入
stanford。要访问,
StanfordTagger您需要使用以下任一方法:
>>> from nltk.tag.stanford import StanfordTagger
(假设`StanfordTagger没有进一步嵌套在模块中)或通过以下方式访问它
>>> st = stanford.StanfordTagger('bidirection-distsim-wsj-0-18.tagger')
您仅在导入
stanford。要访问,
StanfordTagger您需要使用以下任一方法:
>>> from nltk.tag.stanford import StanfordTagger
(假设`StanfordTagger没有进一步嵌套在模块中)或通过以下方式访问它
>>> st = stanford.StanfordTagger('bidirection-distsim-wsj-0-18.tagger')