class

Explanation::ExplanationGenerator

Inherits Reference < Object

Generates explanations by tracing AtomSpace inference paths

Constructors

new(atomspace : AtomSpace::AtomSpace)

Instance methods

atomspace
contrastive_explanation(chosen : String, alternative : String) : String

Generate contrastive explanation: why A rather than B?

explain(conclusion : String, max_depth : Int32 = 5) : ExplanationTrace

Build an explanation trace for a conclusion atom

record_step(conclusion : String, step : ReasoningStep)

Add a manually constructed reasoning step to the trace for a conclusion

to_atomspace

Store explanation traces in AtomSpace as inference chains

traces