8000 [PORT] Fix LuisRecognizer to not return intents if there is no utterance · Issue #1159 · microsoft/botbuilder-python · GitHub
[go: up one dir, main page]

Skip to content 8000
[PORT] Fix LuisRecognizer to not return intents if there is no utterance #1159
@tomlm

Description

@tomlm

Port this change from botbuilder-dotnet/master branch:
microsoft/botbuilder-dotnet#4129

Fixes #4117

Description

Luis Recognizer returns an intent of string.empty with a perfect score of 1.0. This messes up logic downstream in RecognizerSet because it thinks it has a perfect intent.

Specific Changes

  • Changed LuisRecognizer to return empy RecognizerResult (no intents or entities) when there is no utterance.

Testing

Changed RegexRecognizer to behave just like LuisRecognizer so that ValueRecognizer tests are valid check.

Changed projects

  • Microsoft.Bot.Builder.AI.LUIS
  • Microsoft.Bot.Builder.Dialogs.Adaptive
  • Microsoft.Bot.Builder.AI.LUIS.Tests

Metadata

Metadata

Assignees

Labels

Area: AI-LUISThe issue is related to LUISP2Nice to have

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0