nltk.inference.mace module¶
A model builder that makes use of the external ‘Mace4’ package.
- class nltk.inference.mace.MaceCommand[source]¶
Bases:
Prover9CommandParent
,BaseModelBuilderCommand
A
MaceCommand
specific to theMace
model builder. It contains a print_assumptions() method that is used to print the list of assumptions in multiple formats.- __init__(goal=None, assumptions=None, max_models=500, model_builder=None)[source]¶
- Parameters
goal (sem.Expression) – Input expression to prove
assumptions (list(sem.Expression)) – Input expressions to use as assumptions in the proof.
max_models (int) – The maximum number of models that Mace will try before simply returning false. (Use 0 for no maximum.)
- property valuation¶
- class nltk.inference.mace.Mace[source]¶
Bases:
Prover9Parent
,ModelBuilder
- nltk.inference.mace.decode_result(found)[source]¶
Decode the result of model_found()
- Parameters
found (bool) – The output of model_found()