class documentation
class BaseTheoremToolCommand(TheoremToolCommand): (source)
Known subclasses: nltk.inference.api.BaseModelBuilderCommand
, nltk.inference.api.BaseProverCommand
Constructor: BaseTheoremToolCommand(goal, assumptions)
This class holds a goal and a list of assumptions to be used in proving or model building.
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 | _assumptions |
Undocumented |
Instance Variable | _goal |
Undocumented |
Instance Variable | _result |
A holder for the result, to prevent unnecessary re-proving |
Parameters | |
goal:sem.Expression | Input expression to prove |
assumptions:list(sem.Expression) | Input expressions to use as assumptions in the proof. |
Add new assumptions to the assumption list.
Parameters | |
new | new assumptions |
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 |