UnigramTagger = Brown corpus的训练数据,测试数据= nltk.pos_tag标记的新句子

时间:2016-12-02 08:00:39

标签: machine-learning nltk pos-tagger

如果我们可以使用棕色语料库训练UnigramTagger并在使用nltk.pos_tag标记的测试数据上评估相同的UnigramTagger,请告诉我。

如果是,我们如何解释准确性?

CODE SNIP

**data3 = []
for i in data:
    data3.append(nltk.pos_tag(nltk.word_tokenize(i.lower())))

brown_tagged_sents = brown.tagged_sents(categories = ['news'])
unigram_tagger_brown = nltk.UnigramTagger(brown_tagged_sents)
accuracy_value = unigram_tagger_brown.evaluate(data3)
print("Unigram Tagger Accuracy for brown is ",accuracy_value)**

0 个答案:

没有答案