The Cause-Effect-Engine is a simple AI for explaining how a source cause leads to a sink effect.
Run git clone https://github.com/berjc/cause-effect-engine.git
Run cd cause-effect-engine; python engine.py -f <FILE>
where FILE
denotes the cause-effect pairs to load.
Each line is a cause-effect pair where the cause and effect are delimited by a space.
>>> python engine.py -f ../toy_example
Source: homework
Sink: sleep
Source Cause 'homework'
leads to Concept 'tired'
Sink Effect 'sleep'
Source: hungry
Sink: sleep
Source Cause 'hungry'
leads to Concept 'eat'
leads to Concept 'nap'
Sink Effect 'sleep'
Source: ^C
Goodbye!