Exemple #1
0
 public static void Main(string[] args)
 {
     Console.WriteLine("going to test PLE");
     //initialize interface
     PreLudeInterface pi = new PreLudeInterface();
     //define path to mind file
     pi.loadedMind = "mind.mdu";
     //start your engine ...
     pi.initializeEngine();
     //here we go:
     Console.WriteLine("You say: " + "hello Prelude");
     Console.WriteLine("Prelude says: " + pi.chatWithPrelude("hello Prelude"));
     pi.stopPreludeEngine();
 }
Exemple #2
0
 public static void Main(string[] args)
 {
     Console.WriteLine("Prelude@# (0.5.0) command line version, welcome user!");
     Console.WriteLine("if you want to stop chatting, enter: 'exit'");
     //initialize interface
     PreLudeInterface pi = new PreLudeInterface();
     //define path to mind file
     pi.loadedMind = "mind.mdu";
     pi.usesInvalidWordList = false;
     //start your engine ...
     pi.initializeEngine();
     pi.maxMatchesAllowed = 3;
     pi.setProactiveMode(true);
     //here we go:
     while(!ind.StartsWith("exit"))
     {
         Console.Write("You say: ");
         ind = Console.ReadLine();
         Console.WriteLine("Prelude says: " + pi.chatWithPrelude(ind));
     }
     pi.stopPreludeEngine();
 }