Teros.ChatResponder
1.0.2
Prefix Reserved
dotnet add package Teros.ChatResponder --version 1.0.2
NuGet\Install-Package Teros.ChatResponder -Version 1.0.2
<PackageReference Include="Teros.ChatResponder" Version="1.0.2" />
paket add Teros.ChatResponder --version 1.0.2
#r "nuget: Teros.ChatResponder, 1.0.2"
// Install Teros.ChatResponder as a Cake Addin
#addin nuget:?package=Teros.ChatResponder&version=1.0.2
// Install Teros.ChatResponder as a Cake Tool
#tool nuget:?package=Teros.ChatResponder&version=1.0.2
ChatResponder
Teros ChatResponder is a customizable tool for creating chatbots using scripts, parsing and classifiers.
Quick Start
Create a Visual Studio project (c# and .net core). Load the ChatResponder package from nuGet. Put this code in the "Main" entry point:
static void Main (string[] args)
{
var chatResponder = ChatServices.Prebuilt.ChatBotChatResponder.Create("Scripts");
while (true)
{
Console.Write("query> ");
var query = Console.ReadLine();
if (query.Length == 0) break;
var matches = chatResponder.FindMatches(query);
var match = matches.FirstOrDefault();
if (match != null)
{
foreach (var response in match.Responses)
{
Console.WriteLine($"reply> " + response);
}
}
Console.WriteLine();
}
}
Create a folder named "Scripts" in the project. Create a text file named "Demo.txt" in that folder. Open its properties and set Copy to Output Directory to "Copy always". Add the following content (including indents):
Hello
Hi, nice to see you!
Run the program, and at the prompt enter "Hello" and press ENTER to get ChatResponder's response. It's as easy as that!
query> hello
reply> Hi, nice to see you!
Learn more
https://terosresearch.com/ChatResponder/
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
This release includes documentation and updates code to match the documentation.
Learn about ChatResponder at https://terosresearch.com/ChatResponder/Index.html