[hide_from_apps container="span"]This post is in continuation of the previous post Text Classification With Python Using fastText.[/hide_from_apps] This post describes how to improve fastText classifier using various techniques.
More on Precision and Recall
Precision: Number of correct labels out of total labels predicted by classifier.
Recall: Number of labels successfully predicted out of real labels.
Why not put knives in the dishwasher?
This question has three labels on StackExchange: equipment, cleaning and knives.
Let us obtain top five labels predicted from our model (k = top k labels to predict):
text = ['Why not put knives in the dishwasher?']
labels = classifier.predi