Exemplo n.º 1
0
def intrans_verb_entry(verb_lex, vform, irr, next_index):

    rel, subj_role = verb_lex
    syn_val, relspec, hooks, subcat, next_index = verb_entry(rel, vform, irr, next_index)
    next_index = add_subj(next_index, relspec, subj_role, hooks)

    return syn_val, [relspec], hooks, subcat, next_index
Exemplo n.º 2
0
def subj_equi_verb_entry(verb_lex, vform, irr, next_index):

    rel, subj_role, obj_role = verb_lex
    syn_val, relspec, hooks, subcat, next_index = verb_entry(rel, vform, irr, next_index)
    next_index = add_subj(next_index, relspec, subj_role, hooks)
    subj = hooks["subj"]
    next_index = add_vp(next_index, relspec, obj_role, "infinitive", subcat, subj)
    
    return syn_val, [relspec], hooks, subcat, next_index
Exemplo n.º 3
0
def obj_raising_verb_entry(verb_lex, vform, irr, next_index):

    rel, subj_role, vp_role = verb_lex
    syn_val, relspec, hooks, subcat, next_index = verb_entry (rel, vform, irr, next_index)
    next_index = add_subj(next_index, relspec, subj_role, hooks)
    obj, next_index = get_next_index(next_index)
    add_obj_subcat(subcat, obj, False)
    next_index = add_vp(next_index, relspec, vp_role, "infinitive", subcat, obj)

    return syn_val, [relspec], hooks, subcat, next_index
Exemplo n.º 4
0
def inchoative_verb_entry(verb_lex, vform, irr, next_index):

    rel, obj_role = verb_lex
    syn_val, relspec, hooks, subcat, next_index = verb_entry("Cause", vform, irr, next_index)
    next_index = add_subj(next_index, relspec, "CAUSER", hooks)
    sub_event, next_index = add_role(next_index, relspec, "CAUSED")
    sub_relspec = Relspec(rel, {"_EVENT": sub_event})
    next_index = add_obj(next_index, sub_relspec, obj_role, subcat, False)

    return syn_val, [relspec, sub_relspec], hooks, subcat, next_index
Exemplo n.º 5
0
def trans_particle_verb_entry(verb_lex, vform, irr, next_index):

    pform, rel, subj_role, obj_role = verb_lex
    syn_val, relspec, hooks, subcat, next_index = verb_entry(rel, vform, irr, next_index)
    next_index = add_subj(next_index, relspec, subj_role, hooks)
    next_index = add_obj(next_index, relspec, obj_role, subcat, False)
    subcat.append(
        {"arg": "Particle",
         "analyses": [
             {"cat": "Prep",
              "pform": pform}]})

    return syn_val, [relspec], hooks, subcat, next_index