Exemple #1
0
def _(tree, params, rest):
    val = translateRestToArray(tree)
    subj = translate(params["subj"], NP_RULES)
    obj = translate(params["obj"], NP_RULES)
    verb, subtrees, objcase = randomTranslation(tree["lemma"], "fi:v")
    return FiVP(verb,
                subj=subj,
                obj=obj,
                objcase=objcase,
                subtrees=subtrees + val)
Exemple #2
0
def _(tree, params, rest):
    val = translateRestToArray(tree)
    verb, subtrees, objcase = randomTranslation(tree["lemma"], "fi:v")
    return FiVP(verb, objcase=objcase, subtrees=subtrees + val)
Exemple #3
0
def _(tree, params, rest):
    val = translateRest(tree)
    return FiA([randomTranslation(tree["lemma"], "fi:n"), val], {"monikko"})