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 _get_muc_prf(gold, resp): return tuple(round(v, 3) for v in _prf(*muc(gold, resp)))
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))