nlp
nlp copied to clipboard
task8: working precision and recall
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)