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)
def _(tree, params, rest): val = translateRestToArray(tree) verb, subtrees, objcase = randomTranslation(tree["lemma"], "fi:v") return FiVP(verb, objcase=objcase, subtrees=subtrees + val)
def _(tree, params, rest): val = translateRest(tree) return FiA([randomTranslation(tree["lemma"], "fi:n"), val], {"monikko"})