Exemple #1
0
def test_match_nopro_d2_3():
    assert_true(coref_rules.exact_match(markables_tr[35], markables_tr[135]))
    assert_false(
        coref_rules.exact_match_no_pronouns(markables_tr[35],
                                            markables_tr[135]))
    assert_true(coref_rules.exact_match(markables_tr[169], markables_tr[175]))
    assert_false(
        coref_rules.exact_match_no_pronouns(markables_tr[169],
                                            markables_tr[175]))
Exemple #2
0
def test_match_nopro_d2_2():
    assert_true(coref_rules.exact_match(markables_tr[17],markables_tr[71]))
    print (markables_tr[17])
    print (markables_tr[71])
    assert_false(coref_rules.exact_match_no_pronouns(markables_tr[17],markables_tr[71]))
    assert_true(coref_rules.exact_match_no_pronouns(markables_tr[21],markables_tr[28]))
    assert_false(coref_rules.exact_match_no_pronouns(markables_tr[21],markables_tr[29]))
Exemple #3
0
def test_match_nopro_d2_2():
    assert_true(coref_rules.exact_match(markables_tr[17],markables_tr[71]))
    assert_false(coref_rules.exact_match_no_pronouns(markables_tr[17],markables_tr[71]))
    assert_true(coref_rules.exact_match_no_pronouns(markables_tr[21],markables_tr[28]))
    assert_false(coref_rules.exact_match_no_pronouns(markables_tr[21],markables_tr[29]))
Exemple #4
0
def test_match_nopro_d2_3():
    assert_true(coref_rules.exact_match(markables_tr[35], markables_tr[135]))
    assert_false(coref_rules.exact_match_no_pronouns(markables_tr[35], markables_tr[135]))
    assert_true(coref_rules.exact_match(markables_tr[169], markables_tr[175]))
    assert_false(coref_rules.exact_match_no_pronouns(markables_tr[169], markables_tr[175]))