calculate fmeasure and modify the dataset loader to have more information