Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Question Answering recognizer #518

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,5 @@ Documentation/docs/
PublishProfiles/

appsettings.local.json
appsettings.Development.json
appsettings.Development.json
/outputpackages
11 changes: 11 additions & 0 deletions Bot.Builder.Community.sln
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bot.Builder.Community.Adapt
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bot.Builder.Community.Adapters.Facebook.Tests", "tests\Bot.Builder.Community.Adapters.Facebook.Tests\Bot.Builder.Community.Adapters.Facebook.Tests.csproj", "{8201DC48-763A-4534-9E51-466E15DF01D8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bot.Builder.Community.Recognizers.CustomQuestionAnsweringRecognizer", "libraries\Bot.Builder.Community.Recognizers.CustomQuestionAnsweringRecognizer\Bot.Builder.Community.Recognizers.CustomQuestionAnsweringRecognizer.csproj", "{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug - NuGet Packages|Any CPU = Debug - NuGet Packages|Any CPU
Expand Down Expand Up @@ -805,6 +807,14 @@ Global
{8201DC48-763A-4534-9E51-466E15DF01D8}.Documentation|Any CPU.Build.0 = Debug|Any CPU
{8201DC48-763A-4534-9E51-466E15DF01D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8201DC48-763A-4534-9E51-466E15DF01D8}.Release|Any CPU.Build.0 = Release|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Debug - NuGet Packages|Any CPU.ActiveCfg = Debug|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Debug - NuGet Packages|Any CPU.Build.0 = Debug|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Documentation|Any CPU.ActiveCfg = Debug|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Documentation|Any CPU.Build.0 = Debug|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -893,6 +903,7 @@ Global
{428AD1B4-DF58-4D21-9C19-AB4AB6001A90} = {840D4038-9AB8-4750-9FFE-365386CE47E2}
{3348B9A5-E3CE-4AF8-B059-8B4D7971C25A} = {840D4038-9AB8-4750-9FFE-365386CE47E2}
{8201DC48-763A-4534-9E51-466E15DF01D8} = {840D4038-9AB8-4750-9FFE-365386CE47E2}
{2FF7084F-98F8-461B-BF3F-F0D8F0AA3E66} = {2975F285-9749-49EA-A6E6-E5D78DDE20B6}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9FE3B75E-BA2B-45BC-BBF0-DDA8BA10C4F0}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ The following recognizers are currently available;
| Name | Description | NuGet |
| ------ | ------ | ------ |
| [Fuzzy Matching Recognizer](libraries/Bot.Builder.Community.Recognizers.FuzzyRecognizer) | A recognizer that allows you to use fuzzy matching to compare strings. Useful in situations such as when a user make a spelling mistake etc. When the recognizer is used a list of matches, along with confidence scores, are returned. | [![NuGet version](https://img.shields.io/badge/NuGet-blue.svg)](https://www.nuget.org/packages/Bot.Builder.Community.Recognizers.FuzzyRecognizer/) |
| [Custom Question Answering Recognizer](libraries/Bot.Builder.Community.Recognizers.CustomQuestionAnsweringRecognizer) | A recognizer that allows you to do inference calls to Azure Custom Question Answering projects. | [![NuGet version](https://img.shields.io/badge/NuGet-blue.svg)](https://www.nuget.org/packages/Bot.Builder.Community.Recognizers.CustomQuestionAnsweringRecognizer/) |

### Storage

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Nullable>enable</Nullable>
<PackageTags>msbot-component;msbot-recognizer;composer;botframework;botbuilder</PackageTags>
<Version>1.0.0</Version>
<PackageLicenseUrl>https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/tree/master/libraries/Bot.Builder.Community.Recognizers.QuestionAnsweringRecognizer/</PackageProjectUrl>
<Copyright>Bot Builder Community 2022</Copyright>
<RepositoryUrl>https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/blob/develop/libraries/Bot.Builder.Community.Recognizers.QuestionAnsweringRecognizer/</RepositoryUrl>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Title>Question Answering Recognizer</Title>
<Authors>BotBuilderCommunity</Authors>
<PackageId>Bot.Builder.Community.Recognizers.CustomQuestionAnsweringRecognizer</PackageId>
<AssemblyName>Bot.Builder.Community.Recognizers.CustomQuestionAnsweringRecognizer</AssemblyName>
</PropertyGroup>

<ItemGroup>
<Content Include="**/*.schema" />
<Content Include="**/*.uischema" />
<None Include="exported/**/*.*" Pack="true" PackagePath="exported" />
<None Include="README.md" Condition="Exists('README.md')" Pack="true" PackagePath="" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime" Version="4.17.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Bot.Builder.Community.Recognizers;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.Dialogs.Declarative;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace Bot.Builder.Community.Recognizers
{
public class CustomQuestionAnsweringRecognizerBotComponent : BotComponent
{
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
services.AddSingleton<DeclarativeType>((sp) => new DeclarativeType<CustomQuestionAnsweringRecognizer>(CustomQuestionAnsweringRecognizer.Kind));
}
}
}
Loading