Example #1
0
def _get_coref_fscore(gold, resp, measures):
    for name in parse_measures(measures):
        f = getattr(coref_metrics, name)
        yield f.__name__, round(_prf(*f(gold, resp))[2], 3)
Example #2
0
def _get_muc_prf(gold, resp):
    return tuple(round(v, 3) for v in _prf(*muc(gold, resp)))
Example #3
0
def _get_muc_prf(gold, resp):
    return tuple(round(v, 3) for v in _prf(*muc(gold, resp)))
Example #4
0
def _get_coref_fscore(gold, resp, measures):
    for name in parse_measures(measures):
        f = getattr(coref_metrics, name)
        yield f.__name__, round(_prf(*f(gold, resp))[2], 3)
def ceaf_e(gold, resp):
    return metrics._prf(*metrics.entity_ceaf(gold, resp))
def b_cubed(gold, resp):
    return metrics._prf(*metrics.b_cubed(gold, resp))
def muc(gold, resp):
    return metrics._prf(*metrics.muc(gold, resp))