class documentation
class TheoremToolCommandDecorator(TheoremToolCommand): (source)
Known subclasses: nltk.inference.api.ModelBuilderCommandDecorator, nltk.inference.api.ProverCommandDecorator
Constructor: TheoremToolCommandDecorator(command)
A base decorator for the ProverCommandDecorator and ModelBuilderCommandDecorator classes from which decorators can extend.
| Method | __init__ |
No summary |
| Method | add |
Add new assumptions to the assumption list. |
| Method | assumptions |
List the current assumptions. |
| Method | goal |
Return the goal |
| Method | print |
Print the list of the current assumptions. |
| Method | retract |
Retract assumptions from the assumption list. |
| Instance Variable | _command |
Undocumented |
| Instance Variable | _result |
Undocumented |
overridden in
nltk.inference.api.ModelBuilderCommandDecorator, nltk.inference.api.ProverCommandDecorator| Parameters | |
| command | TheoremToolCommand to decorate |
Add new assumptions to the assumption list.
| Parameters | |
| new | new assumptions |
overridden in
nltk.inference.nonmonotonic.ClosedDomainProver, nltk.inference.nonmonotonic.ClosedWorldProver, nltk.inference.nonmonotonic.UniqueNamesProverList the current assumptions.
| Returns | |
| list of Expression |
Retract assumptions from the assumption list.
assumptions list. :type debug: bool :param retracted: assumptions to be retracted :type retracted: list(sem.Expression)
| Parameters | |
| retracted | Undocumented |
| debug | If True, give warning when retracted is not present on |
overridden in
nltk.inference.api.ModelBuilderCommandDecorator, nltk.inference.api.ProverCommandDecoratorUndocumented