I am developing a Chat Bot web application. I want to integrate AIML to make my web application friendly. I have a problem when I load file setting and load file AIML. My code
var mybot = new Bot();
mybot.loadSettings(@"C:\Users\user\Desktop\WorkSpace Temp\Test\WebApplicationAIML\WebApplicationAIML\bin\config\Settings.xml");
mybot.isAcceptingUserInput = false;
mybot.loadAIMLFromFiles();
mybot.isAcceptingUserInput = true;
var myUser = new User("DefaultUser", mybot);
Request Question = new Request("Hi", myUser, mybot);
Result Answer = mybot.Chat(Question);
Console.WriteLine(Answer.Output);
But I got an error: "{"Value cannot be null.\r\nParameter name: path2"" at mybot.loadSettings(@"C:\Users\user\Desktop\WorkSpace Temp\Test\WebApplicationAIML\WebApplicationAIML\bin\config\Settings.xml"); I also try another way such as
mybot.loadSettings();
And include both aiml and config folder into Project, and coppy them into /bin/debug/ But I also got the same error. I use AIML 2.0 from http://ift.tt/2vHPnXQ
Please help me. Thank a lot.
Aucun commentaire:
Enregistrer un commentaire