public void TestCase() { ElizaMain eliza = new ElizaMain(); foreach (var s in new string[] {"Hello", "Well, and you?", "I'm implementing some weird project.", "Yes, can you give me technical advice?", "Thank you.", "Bye."}) { Console.WriteLine("> {0}", s); Console.WriteLine("< {0}", eliza.ProcessInput(s)); } }
public void TestCase() { var eliza = new ElizaMain(); foreach (var s in new string[] { "Hello", "Well, and you?", "I'm implementing some weird project.", "Yes, can you give me technical advice?", "Thank you.", "Bye." }) { Console.WriteLine("> {0}", s); Console.WriteLine("< {0}", eliza.ProcessInput(s)); } }
static void Main(string[] args) { ElizaMain eliza = new ElizaMain(); while (true) { var input = System.Console.ReadLine(); var output = eliza.ProcessInput(input); System.Console.WriteLine(output); } }
public ElizaConversation(Script script, int seed) { _eliza = new ElizaMain(script, seed); }
public ElizaEngineAdapter(IKnowledge?previous, Script script) { Previous = previous; Eliza = new ElizaMain(script, unchecked ((int)DateTime.UtcNow.Ticks)); }