Skip to content

Conversation

@tomlm
Copy link
Contributor

@tomlm tomlm commented Jun 18, 2020

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.

Copy link

@chrimc62 chrimc62 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@tomlm tomlm requested a review from cleemullins as a code owner June 18, 2020 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LuisRecognizer returns Empty intent with perfect score when there is no utterance

4 participants