def evaluate_sents(inputs, grammar, model, assignment, trace=0):
 return [[(syn, sem, model.evaluate((u'%s' % sem), assignment, trace=trace)) for (syn, sem) in interpretations] for interpretations in interpret_sents(inputs, grammar)]

def evaluate_sents ( inputs , grammar , model , assignment , trace = 0 ) : return [ [ ( syn , sem , model . evaluate ( ( u'%s' % sem ) , assignment , trace = trace ) ) for ( syn , sem ) in interpretations ] for interpretations in interpret_sents ( inputs , grammar ) ]
add the truth-in-a-model value to each semantic representation for each syntactic parse of each input sentences .