Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以得到准确性:
print ("Accuracy result = " + str(nltk.classify.accuracy(classifier, test_set)) )
但是我如何获得 F-measure(或 Mean F1-Score)?
我看到这个问题提到了一些 F 度量,但我找不到用于该显示的命令。
你必须自己计算。您可以从混淆矩阵中获得计算所需的值。看这里: http: //nltk.org/book/ch06.html