Measuring precision and recall of a classifier