| Home | Trees | Indices | Help |
|
|---|
|
|
This package contains classes for representing semantic structure in formulas of first-order logic and for evaluating such formulas in set-theoretic models.
|
|||
| |||
|
|||
|
Assignment A dictionary which represents an assignment of values to variables. |
|||
|
Valuation A dictionary which represents a model-theoretic Valuation of non-logical constants. |
|||
| Undefined | |||
|
Model A first order model is a domain D of discourse and a valuation V. |
|||
|
LogicParser A lambda calculus expression parser. |
|||
|
DrtParser A lambda calculus expression parser. |
|||
|
Boxer This class is an interface to Johan Bos's program Boxer, a wide-coverage semantic parser that produces Discourse Representation Structures (DRSs). |
|||
|
|||
dict
|
|
||
dict
|
|
||
dict
|
|
||
list of Expression
|
|
||
tuple
|
|
||
| logic.Expression |
|
||
|
|||
| Valuation |
|
||
bool
|
|
||
int of tuple of str
|
|
||
set of tuple of str
|
|
||
|
|||
|
|||
|
|||
|
|||
APP =
|
|||
|
|||
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.
|
Convert input sentences into syntactic trees.
|
Convert a file of First Order Formulas into a list of {Expression}s.
|
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)}
|
Find the semantic representation at the root of a tree.
|
Convert a valuation file into a valuation. |
Check whether a set represents a relation (of any arity).
|
Check the arity of a relation.
|
Convert a set containing individuals (strings or numbers) into a set of unary tuples. Any tuples of strings already in the set are passed through unchanged. For example:
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:42 2011 | http://epydoc.sourceforge.net |