コード例 #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)
コード例 #2
0
def _get_muc_prf(gold, resp):
    return tuple(round(v, 3) for v in _prf(*muc(gold, resp)))
コード例 #3
0
def _get_muc_prf(gold, resp):
    return tuple(round(v, 3) for v in _prf(*muc(gold, resp)))
コード例 #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)
コード例 #5
0
def ceaf_e(gold, resp):
    return metrics._prf(*metrics.entity_ceaf(gold, resp))
コード例 #6
0
def b_cubed(gold, resp):
    return metrics._prf(*metrics.b_cubed(gold, resp))
コード例 #7
0
def muc(gold, resp):
    return metrics._prf(*metrics.muc(gold, resp))