Package nltk :: Package inference :: Module api :: Class ModelBuilderCommand
[hide private]
[frames] | no frames]

Class ModelBuilderCommand

source code

        object --+    
                 |    
TheoremToolCommand --+
                     |
                    ModelBuilderCommand
Known Subclasses:

This class holds a ModelBuilder, a goal, and a list of assumptions. When build_model() is called, the ModelBuilder is executed with the goal and assumptions.

Instance Methods [hide private]
 
__init__(self, modelbuilder, goal=None, assumptions=[]) source code
 
build_model(self, verbose=False)
Perform the actual proof.
source code

Inherited from TheoremToolCommand: add_assumptions, assumptions, goal, print_assumptions, retract_assumptions

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]
  _modelbuilder
The theorem tool to execute with the assumptions

Inherited from TheoremToolCommand (private): _assumptions, _goal, _result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, modelbuilder, goal=None, assumptions=[])
(Constructor)

source code 
Parameters:
  • modelbuilder (ModelBuilder) - The theorem tool to execute with the assumptions
Overrides: TheoremToolCommand.__init__

See Also: TheoremToolCommand

build_model(self, verbose=False)

source code 

Perform the actual proof. Store the result to prevent unnecessary re-building.