(results)
return results
Wraps the compute_precision_recall function and runs on a dict of results
Wraps the compute_precision_recall function and runs on a dict of results
Wraps the compute_precision_recall function and runs on a dict of results
def compute_precision_recall_wrapper(results):
    """
    Wraps the compute_precision_recall function and runs on a dict of results
    """

    results_a = {key: compute_precision_recall(value, True) for key, value in results.items() if
                 key in ['partial', 'ent_type']}
    results_b = {key: compute_precision_recall(value) for key, value in results.items() if
                 key in ['strict', 'exact']}

    results = {**results_a, **results_b}

    return results
def compute_precision_recall_wrapper ( results ) : results_a = { key : compute_precision_recall ( value , True ) for key , value in results . items ( ) if key in [ 'partial' , 'ent_type' ] } results_b = { key : compute_precision_recall ( value ) for key , value in results . items ( ) if key in [ 'strict' , 'exact' ] } results = { * * results_a , * * results_b } return results