if num_matched_labels[bad] == 0:
            f1_bad = 0.0
        else:
            precision_bad = float(num_matched_labels[bad]) / float(
                num_predicted_labels[bad]