nltk pos_tagger的精度是多少? [英] What is the accuracy of nltk pos_tagger?
本文介绍了nltk pos_tagger的精度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在写论文,并在工作中使用nltk.pos_tagger.我找不到有关此算法的准确性的任何信息.有人知道我在哪里可以找到这些信息吗?
I'm writing a dissertation, and using nltk.pos_tagger in my work. I can't find any information about what the accuracy of this algorithm. Does anybody know where can I find such information?
推荐答案
NLTK
默认pos标记器pos_tag
是MaxEnt标记器,请参见
NLTK
default pos tagger pos_tag
is a MaxEnt tagger, see line 82 from https://github.com/nltk/nltk/blob/develop/nltk/tag/init.py
from nltk.corpus import brown
from nltk.data import load
sents = brown.tagged_sents()
# test on last 10% of brown corpus.
numtest = len(sents) / 10
testsents = sents[numtest:]
_POS_TAGGER = 'taggers/maxent_treebank_pos_tagger/english.pickle'
tagger = load(_POS_TAGGER)
print tagger.evaluate(testsents)
[输出]:
这篇关于nltk pos_tagger的精度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文