Level-2 Memories
Level-2 memories are explicit inference templates, such as "if i see a person then the person sees me." A level-2 memory will be resurrected when any of its conditions are similar to CCs in the newest portion of the context. To create a level-2 memory, use the "-2" flag.
$ ./brainhat -2 +repeat
Starting new memory hash.
>> if i see a person then the person sees me
if You see a person then the person sees You.
>> bye
#
goodbye!
The memory will be storied in the memories subdirectory.
ls memories
Makefile mem1d6ba196.mbin memoryhash.hsh
Invoke a level-2 memory
Local memories are used when the "-A" flag is supplied on the command line. Here, we exercise the level-2 memory just created:
./brainhat -A +repeat
>> i see mario
You see mario. mario sees You.
>> i see luigi
You see luigi. luigi sees You.
>> i see the princess
You see the princess. the princess sees You.
>> bye
goodbye!
Clean up memories
You can clear out the memories directory like so:
$ (cd memories; make clean)
rm *.mbin *~ core memoryhash.hsh
rm: cannot remove '*~': No such file or directory
rm: cannot remove 'core': No such file or directory
make: [Makefile:6: clean] Error 1 (ignored)
See also explicit inferences.