示例#1
0
def test_rcs_tcc_ceaf():
    "Examples from Luo (2005)"
    for system, response, expected in RCS14_TCM_RESPS:
        actual = dict(_get_coref_fscore(RCS14_TCM_GOLD, response,
                                        LUO_MEASURES))
        check_correct(expected, actual)
示例#2
0
def test_luo_ceaf():
    "Examples from Luo (2005)"
    for system, response, expected in LUO05_RESPS:
        actual = dict(_get_coref_fscore(LUO05_GOLD, response, LUO_MEASURES))
        check_correct(expected, actual)
示例#3
0
def test_rcs_tca_ceaf():
    "Examples from Luo (2005)"
    for system, response, expected in RCS14_TCA_RESPS:
        actual = dict(_get_coref_fscore(RCS14_TCA_GOLD, response, LUO_MEASURES))
        check_correct(expected, actual)
示例#4
0
def test_luo_ceaf():
    "Examples from Luo (2005)"
    for system, response, expected in LUO05_RESPS:
        actual = dict(_get_coref_fscore(LUO05_GOLD, response, LUO_MEASURES))
        check_correct(expected, actual)
示例#5
0
文件: test.py 项目: vsocrates/medtype
def test_conll_multi_sysa():
    assert check_correct(
        EXPECTED_CONLL_MULTI_SYSA,
        _get_stats(CONLL_MULTI_GOLD_UNSTITCHED, CONLL_MULTI_SYSA_UNSTITCHED))
示例#6
0
文件: test.py 项目: vsocrates/medtype
def test_conll_multi_selfeval():
    assert check_correct(
        EXPECTED_CONLL_MULTI_SELFEVAL,
        _get_stats(CONLL_MULTI_GOLD_UNSTITCHED, CONLL_MULTI_GOLD_UNSTITCHED))
示例#7
0
文件: test.py 项目: vsocrates/medtype
def test_tac_eval():
    check_correct(EXPECTED_TAC_SYS, _get_stats(TAC_GOLD_COMB, TAC_SYS_COMB))