calculate precision recall fmeasure