AndrioCelos / AIML

An AIML interpreter library for .NET applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AIML (working title)

This is a .NET Standard library and accompanying software for running chat robots using Artificial Intelligence Markup Language.

The following directories are included in this repository:

  • Aiml: the core library
  • AimlConsoleBot: a basic .NET Core AIML interpreter
  • AimlTester: a console application that runs AIML unit tests (a non-standard AIML extension)
  • AimlVoice: an AIML interpreter using Windows Speech Recognition and text-to-speech features
  • ExampleBot: a sample set of AIML and configuration files for use with the AIML library

Example usage

using Aiml;

var bot = new Bot(botPath);
bot.LoadConfig();
bot.LoadAIML();

var user = new User("User", bot);
while (true) {
	Console.Write("> ");
	var message = Console.ReadLine();
	if (message == null) break;
	var response = bot.Chat(new Request(message, user, bot), trace);
	Console.WriteLine($"{bot.Properties.GetValueOrDefault("name", "Robot")}: {response}");
}

About

An AIML interpreter library for .NET applications

License:MIT License


Languages

Language:C# 100.0%