Home | Trees | Indices | Help |
|
---|
|
Utility functions for batch-processing sentences: parsing and extraction of the semantic representation of the root node of the the syntax tree, followed by evaluation of the semantic representation in a first-order model.
|
|||
dict
|
|
||
logic.Expression |
|
||
logic.Expression |
|
||
dict
|
|
||
dict
|
|
||
tuple
|
|
||
Valuation |
|
||
list of Expression
|
|
||
|
|||
|
|||
|
|
|||
_VAL_SPLIT_RE = re.compile(r'\s
|
|||
_ELEMENT_SPLIT_RE = re.compile(r'\s
|
|||
_TUPLES_RE = re.compile(r'
|
|
Convert input sentences into syntactic trees.
|
Find the semantic representation at a given tree node.
|
Find the semantic representation at the root of a tree.
|
Add the semantic representation to each syntactic parse tree of each input sentence.
|
Add the truth-in-a-model value to each semantic representation for each syntactic parse of each input sentences.
|
Parse a line in a valuation file. Lines are expected to be of the form: noosa => n girl => {g1, g2} chase => {(b1, g1), (b2, g1), (g1, d1), (g2, d2)}
|
Convert a valuation file into a valuation. |
Convert a file of First Order Formulas into a list of {Expression}s.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:50 2008 | http://epydoc.sourceforge.net |