https://github.com/yotamarker/public-livinGrimoire/blob/master/livingrimoire%20start%20here/LivinGrimoire%20java/AXJava/ElizaDeducer.java
(the classes are ported to other languages as usual)
main example in Java:
output:
i guess a overslept
two
the ElizaDeducerInitializer(sub class of the ElizaDeducer), contains logic chunks
https://github.com/yotamarker/public-livinGrimoire/blob/master/livingrimoire%20start%20here/LivinGrimoire%20java/AXJava/ElizaDeducerInitializer.java
here is an example of one:
logic chunk:
lots of customized logic chunks can be added:
if, or and other Boolean combos
premises and their respective conclusions
Wh questions
out of the box customized logic
this means, when the RailChatBot(LLM) is fed this strings it also creates responses to
clue triggers.
in the above example "a played vidya all night long" is a deduced trigger that was never explicitly
input.
(the classes are ported to other languages as usual)
main example in Java:
Code:
ElizaDeducer elizaDeducer = new ElizaDeducerInitializer();
RailChatBot chatBot = new RailChatBot();
chatBot.learnV2("a overslept because b played vidya all night long",elizaDeducer);
chatBot.learnV2("one",elizaDeducer);
chatBot.learnV2("two",elizaDeducer);
System.out.println(chatBot.respondDialog("a played vidya all night long"));
System.out.println(chatBot.respondDialog("one"));
output:
i guess a overslept
two
the ElizaDeducerInitializer(sub class of the ElizaDeducer), contains logic chunks
https://github.com/yotamarker/public-livinGrimoire/blob/master/livingrimoire%20start%20here/LivinGrimoire%20java/AXJava/ElizaDeducerInitializer.java
here is an example of one:
logic chunk:
Code:
because1.add(new AXKeyValuePair("{1}","i guess {0}"));
babbleTmp.add(new PhraseMatcher("(.*) because (.*)", because1)); // end because
lots of customized logic chunks can be added:
if, or and other Boolean combos
premises and their respective conclusions
Wh questions
out of the box customized logic
this means, when the RailChatBot(LLM) is fed this strings it also creates responses to
clue triggers.
in the above example "a played vidya all night long" is a deduced trigger that was never explicitly
input.