Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
        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));
            }
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
 public ElizaConversation(Script script, int seed)
 {
     _eliza = new ElizaMain(script, seed);
 }
Exemplo n.º 5
0
 public ElizaEngineAdapter(IKnowledge?previous, Script script)
 {
     Previous = previous;
     Eliza    = new ElizaMain(script, unchecked ((int)DateTime.UtcNow.Ticks));
 }