#NEWLINE# def evaluate_sents( inputs , grammar , model , assignment , trace = 0 ) : #NEWLINE# #INDENT# '\n    Add the truth-in-a-model value to each semantic representation\n    for each syntactic parse of each input sentences.\n\n    :param inputs: a list of sentences\n    :type inputs: list(str)\n    :param grammar: ``FeatureGrammar`` or name of feature-based grammar\n    :type grammar: nltk.grammar.FeatureGrammar\n    :return: a mapping from sentences to lists of triples (parse-tree, semantic-representations, evaluation-in-model)\n    :rtype: list(list(tuple(nltk.tree.Tree, nltk.sem.logic.ConstantExpression, bool or dict(str): bool)))\n    ' #NEWLINE# return [ [ ( syn , sem , model . evaluate ( ( '%s' % sem ) , assignment , trace = syn ) ) for ( syn , sem ) in interpretations ] for interpretations in interpret_sents ( inputs , grammar ) ]