A simple parser to process the confusion matrix