fmeasure calculations