class documentation
class DrtExpression(object): (source)
Known subclasses: nltk.sem.drt.DRS, nltk.sem.drt.DrtAbstractVariableExpression, nltk.sem.drt.DrtApplicationExpression, nltk.sem.drt.DrtBinaryExpression, nltk.sem.drt.DrtLambdaExpression, nltk.sem.drt.DrtNegatedExpression, nltk.sem.drt.DrtProposition, nltk.sem.drt.PossibleAntecedents
This is the base abstract DRT Expression from which every DRT Expression extends.
| 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 | eliminate |
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 | get |
Return the set of discourse referents in this DRS. :param recursive: bool Also find discourse referents in subterms? :return: list of Variable objects |
| 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 |
overridden in
nltk.sem.drt.DRS, nltk.sem.drt.DrtAbstractVariableExpression, nltk.sem.drt.DrtConcatenation, nltk.sem.drt.DrtPropositionUndocumented
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.
| Parameters | |
| other | an DrtExpression to check equality against |
| prover | a nltk.inference.api.Prover |
overridden in
nltk.sem.drt.DRS, nltk.sem.drt.DrtAbstractVariableExpression, nltk.sem.drt.DrtApplicationExpression, nltk.sem.drt.DrtBinaryExpression, nltk.sem.drt.DrtNegatedExpression, nltk.sem.drt.DrtPropositionReturn the set of discourse referents in this DRS. :param recursive: bool Also find discourse referents in subterms? :return: list of Variable objects