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

Guarantee sorted results from IntentDeterminationEngine.determine_intent #137

Merged
merged 4 commits into from
Jul 19, 2021

Conversation

clusterfudge
Copy link
Collaborator

Enumerate all possible parse results if context or regex entities are in play.

Enumerate all possible parse results if context or regex entities are in
play.
JarbasAl pushed a commit to HelloChatterbox/HolmesIV that referenced this pull request Jul 10, 2021
cherry pick of mycroft-core/pull/2915 waiting for MycroftAI/adapt/pull/137

Added to docstring to explain why the method took a list of utterances instead of a single utterance.

Fixed a bug where the highest confidence from the Adapt parser is different than the highest confidence from the Adapt intent matcher.
JarbasAl pushed a commit to HelloChatterbox/HolmesIV that referenced this pull request Jul 10, 2021
cherry pick of mycroft-core/pull/2915 waiting for MycroftAI/adapt/pull/137

Added to docstring to explain why the method took a list of utterances instead of a single utterance.

Fixed a bug where the highest confidence from the Adapt parser is different than the highest confidence from the Adapt intent matcher.
forslund
forslund previously approved these changes Jul 12, 2021
Copy link
Collaborator

@forslund forslund left a comment

Choose a reason for hiding this comment

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

Looks really nice. Should we bump the version all the way to 0.5.0 since this changes an outwardly observable behavior?

@chrisveilleux
Copy link
Member

My only comment is that this makes Adapt no longer "greedy" when doing the sorting. Is this acceptable? If so, should comments be added to this effect?

Also updating comment to call out scenarios in which the algorithm is
greedy vs when it's more thorough.
@clusterfudge
Copy link
Collaborator Author

@ChristopherRogers1991 updated the comments on IntentDeterminationEngine to incorporate the fact that we're only sometimes greedy.

Also bumped to 0.5.0.

@ChristopherRogers1991
Copy link
Contributor

I think you probably meant to tag @chrisveilleux.

@clusterfudge
Copy link
Collaborator Author

I think you probably meant to tag @chrisveilleux.

Yup, my bad! Thanks other Chris!

@clusterfudge clusterfudge merged commit fba22ce into master Jul 19, 2021
JarbasAl pushed a commit to HelloChatterbox/HolmesIV that referenced this pull request Jul 21, 2021
cherry pick of mycroft-core/pull/2915 waiting for MycroftAI/adapt/pull/137

Added to docstring to explain why the method took a list of utterances instead of a single utterance.

Fixed a bug where the highest confidence from the Adapt parser is different than the highest confidence from the Adapt intent matcher.
JarbasAl pushed a commit to HelloChatterbox/HolmesIV that referenced this pull request Jul 22, 2021
cherry pick of mycroft-core/pull/2915 waiting for MycroftAI/adapt/pull/137

Added to docstring to explain why the method took a list of utterances instead of a single utterance.

Fixed a bug where the highest confidence from the Adapt parser is different than the highest confidence from the Adapt intent matcher.
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.

IntentDeterminationEngine.determine_intent does not return sorted results
4 participants