nlp icon indicating copy to clipboard operation
nlp copied to clipboard

task8: working precision and recall

Open Fapfood opened this issue 5 years ago • 0 comments

test() method provide wrong results, but test_label() works just fine. Test label provide p/r/f1 for each label, just like classification_report(test_y, predictions) for SVM.

classifier = fastText.train_supervised('train-10%.txt')
result = classifier.test_label('test-10%.txt')
print(result)

Fapfood avatar May 14 '19 20:05 Fapfood