microsoft / botbuilder-dotnet

Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
https://github.com/Microsoft/botframework
MIT License
871 stars 478 forks source link

Intent and Entity names #525

Closed DeniseMak closed 6 years ago

DeniseMak commented 6 years ago

The RecognizerResult changes intent and entity names like "HomeAutomation.TurnOn", "HomeAutomation.Room", "Calendar.Add" to "HomeAutomation_TurnOn", "HomeAutomation_Room", "Calendar_Add".

Is it possible to keep the periods as they are?

var luisResult = context.Services.Get<RecognizerResult>(LuisRecognizerMiddleware.LuisRecognizerResultKey);
var (intent, score) = luisResult.GetTopScoringIntent();
// won't work if the intent name contains a "." Example: Calendar.Add
await dialogContext.Begin(intent, luisResult);
DeniseMak commented 6 years ago

Just talked to @chrimc62 - this is by design.