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

Improve handling of ambiguous utterances in DeterministicIntentParser #773

Merged
merged 3 commits into from
Mar 25, 2019

Conversation

adrienball
Copy link
Contributor

Description:
This PR affects two APIs of the DeterministicIntentParser:

  • parse: when a match is found for several intents, then the None intent is returned as there is ambiguity
  • get_intents: when a match is found for several intents, then the probability is set to 1/len(intents) for each of the matching intents

Checklist:

  • My PR is ready for code review
  • I have added some tests, if applicable, and run the whole test suite, including linting tests
  • I have updated the documentation, if applicable

@codecov-io
Copy link

codecov-io commented Mar 22, 2019

Codecov Report

Merging #773 into develop will increase coverage by 0.06%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #773      +/-   ##
===========================================
+ Coverage    88.02%   88.08%   +0.06%     
===========================================
  Files           76       76              
  Lines         4491     4497       +6     
  Branches       853      855       +2     
===========================================
+ Hits          3953     3961       +8     
+ Misses         402      401       -1     
+ Partials       136      135       -1

@adrienball adrienball merged commit 045d57e into develop Mar 25, 2019
@adrienball adrienball deleted the fix/ambiguous-intents branch March 25, 2019 08:30
@adrienball adrienball mentioned this pull request Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants