def compute_prf(total_gold, total_predicted, total_correct):
    """Compute precision, recall, and F1

    Assume binary classification where we are only interested
    in the positive class. In our case, we look at argument extraction.
    """
    if total_predicted == 0:
        precision = 1.0
    else:
        precision = total_correct / total_predicted
    if total_gold == 0:
        recall = 1.0
    else:
        recall = total_correct / total_gold
    f1_score = 2.0 * (precision * recall) / (precision + recall) \
        if precision + recall != 0 else 0.0
    return (round(precision, 4), round(recall, 4), round(f1_score,4))