class DrtConcatenation(DrtBooleanExpression): (source)
Constructor: DrtConcatenation(first, second, consequent)
DRS of the form '(DRS + DRS)'
Method | __eq__ |
Defines equality modulo alphabetic variance. If we are comparing x.M and y.N, then check equality of M and N[x/y]. |
Method | __init__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | eliminate |
Undocumented |
Method | fol |
Undocumented |
Method | get |
No summary |
Method | get |
Undocumented |
Method | replace |
Replace all instances of variable v with expression E in self, where v is free in self. |
Method | simplify |
No summary |
Method | visit |
No summary |
Instance Variable | consequent |
Undocumented |
Method | _pretty |
Undocumented |
Method | _pretty |
Undocumented |
Method | _str |
Undocumented |
Inherited from DrtBinaryExpression
(via DrtBooleanExpression
):
Static Method | _assemble |
Undocumented |
Inherited from DrtExpression
(via DrtBooleanExpression
, DrtBinaryExpression
):
Class Method | fromstring |
Undocumented |
Method | __add__ |
Undocumented |
Method | __and__ |
Undocumented |
Method | __gt__ |
Undocumented |
Method | __neg__ |
Undocumented |
Method | __or__ |
Undocumented |
Method | applyto |
Undocumented |
Method | draw |
Undocumented |
Method | equiv |
Check for logical equivalence. Pass the expression (self <-> other) to the theorem prover. If the prover says it is valid, then the self and other are equal. |
Method | is |
Is self of the form "PRO(x)"? |
Method | make_ |
Undocumented |
Method | make_ |
Undocumented |
Method | pretty |
Draw the DRS :return: the pretty print string |
Method | pretty |
Undocumented |
Method | resolve |
Undocumented |
Method | typecheck |
Undocumented |
Property | type |
Undocumented |
Class Variable | _drt |
Undocumented |
Inherited from BooleanExpression
(via DrtBooleanExpression
, DrtBinaryExpression
, DrtExpression
):
Method | _set |
:see Expression._set_type() |
Inherited from BinaryExpression
(via DrtBooleanExpression
, DrtBinaryExpression
, DrtExpression
, BooleanExpression
):
Method | findtype |
:see Expression.findtype() |
Instance Variable | first |
Undocumented |
Instance Variable | second |
Undocumented |
Inherited from Expression
(via DrtBooleanExpression
, DrtBinaryExpression
, DrtExpression
, BooleanExpression
, BinaryExpression
):
Method | __call__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __lt__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | constants |
Return a set of individual constants (non-predicates). :return: set of Variable objects |
Method | free |
Return a set of all the free (non-bound) variables. This includes both individual and predicate variables, but not constants. :return: set of Variable objects |
Method | negate |
If this is a negated expression, remove the negation. Otherwise add a negation. |
Method | normalize |
Rename auto-generated unique variables |
Method | predicates |
Return a set of predicates (constants, not variables). :return: set of Variable objects |
Method | substitute |
No summary |
Method | variables |
Return a set of all the variables for binding substitution. The variables returned include all free (non-bound) individual variables and any variable starting with '?' or '@'. :return: set of Variable objects... |
Method | visit |
Recursively visit subexpressions. Apply 'function' to each subexpression and pass the result of each function application to the 'combinator' for aggregation. The combinator must have the same signature as the constructor... |
Class Variable | _logic |
Undocumented |
Class Variable | _type |
Undocumented |
nltk.sem.logic.BinaryExpression.__eq__
Defines equality modulo alphabetic variance. If we are comparing x.M and y.N, then check equality of M and N[x/y].
nltk.sem.logic.Expression.replace
Replace all instances of variable v with expression E in self, where v is free in self.