Exemple #1
0
def test_match_last_tok_d2_3():
    global markables_tr
    assert_true(coref_rules.match_last_token(markables_tr[0], markables_tr[0]))
    assert_true(coref_rules.match_last_token(markables_tr[0], markables_tr[3]))
    assert_false(coref_rules.match_last_token(markables_tr[0],
                                              markables_tr[2]))
    assert_true(coref_rules.match_last_token(markables_tr[3],
                                             markables_tr[10]))
Exemple #2
0
def test_match_last_tok_d2_4():
    global markables_tr
    assert_true(
        coref_rules.match_last_token(markables_tr[20], markables_tr[43]))
    assert_true(
        coref_rules.match_last_token(markables_tr[189], markables_tr[190]))
    assert_false(
        coref_rules.match_last_token(markables_tr[0], markables_tr[20]))
    assert_true(
        coref_rules.match_last_token(markables_tr[38], markables_tr[39]))
Exemple #3
0
def test_match_last_tok_d2_3():
    global markables_tr
    assert_true(coref_rules.match_last_token(markables_tr[0],markables_tr[0]))
    assert_true(coref_rules.match_last_token(markables_tr[0],markables_tr[3]))
    assert_false(coref_rules.match_last_token(markables_tr[0],markables_tr[2]))
    assert_true(coref_rules.match_last_token(markables_tr[3],markables_tr[10]))
Exemple #4
0
def test_match_last_tok_d2_4():
    global markables_tr
    assert_true(coref_rules.match_last_token(markables_tr[20], markables_tr[43]))
    assert_true(coref_rules.match_last_token(markables_tr[189], markables_tr[190]))
    assert_false(coref_rules.match_last_token(markables_tr[0], markables_tr[20]))
    assert_true(coref_rules.match_last_token(markables_tr[38], markables_tr[39]))