title: Evaluate per class precision and recall in FastText
body: <p>I am using Facebook Research FastText library for text classification following <a href="https://fasttext.cc/docs/en/supervised-tutorial.html" rel="nofollow noreferrer">this</a> tutorial. I have 2 labels for which i am performing the classification (2-class). The output of the prediction on test file shows the precision and recall for the same. How can i calculate per-class precision and recall for my test file?</p>