Esempio n. 1
0
def punc_entry(punc_lex, next_index):

    type, = punc_lex
    syn_val = SynValue("PuncLex", True)
    syn_val["type"] = type

    return syn_val, [], {}, [], next_index
Esempio n. 2
0
def pron_entry(next_index):

    syn_val = SynValue("PronLex", True)
    relspec = Relspec("PronRel", {})
    root, next_index = add_role(next_index, relspec, "PRON")

    return syn_val, relspec, {"root": root}, [], next_index
Esempio n. 3
0
def copula_verb_entry(verb_lex, next_index):

    vform, = verb_lex
    syn_val = SynValue("VerbLex", True)
    syn_val["vform"] = vform
    syn_val["copula"] = "+"

    if vform == "bare":
        syn_val["irrPlu"] = "+"
        syn_val["irr1st"] = "+"
        syn_val["irr3ps"] = "+"
        syn_val["irrPast"] = "+"
        syn_val["irrPerf"] = "+"

    return syn_val, [], {}, [], next_index
Esempio n. 4
0
def verb_syn_val(vform, irr):
    syn_val = SynValue("VerbLex", True)
    syn_val["vform"] = vform

    if vform == "bare":
        syn_val["irrPlu"] = "-"
        syn_val["irr1st"] = "-"
        syn_val["irr3ps"] = "-"
        if irr:
            syn_val["irrPast"] = "+"
            syn_val["irrPerf"] = "+"
        else:
            syn_val["irrPast"] = "-"
            syn_val["irrPerf"] = "-"

    return syn_val
Esempio n. 5
0
def prep_syn_val():

    syn_val = SynValue("PrepLex", True)
    return syn_val
Esempio n. 6
0
def noun_syn_val():
    syn_val = SynValue("NounLex", True)
    syn_val["regPlu"] = True
    return syn_val
Esempio n. 7
0
def suff_syn_value(suff_type, orth_form):
    syn_val = SynValue("SuffLex", True)
    syn_val["suffType"] = suff_type
    syn_val["rootForm"] = orth_form

    return syn_val
Esempio n. 8
0
def det_syn_val(sg, plu):
    syn_val = SynValue("DetLex", True)
    syn_val["agr"] = {"sg": sg, "plu": plu}
    return syn_val