Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

nlu_client: use classifier weights to ignore ambiguous results #218

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

remi-dupre
Copy link
Contributor

Make use of the provided weights from the classifier:

  • check that the special category unk (understand "unclassified") is missing or negligible
  • check that the result has a big weight
  • check that there is not several categories with a big weight

This is based on this function that I had tested here. The default settings were chosen by testing many combinations through this script (which actually seems overkill, arbitrary values would have probably worked fine).

@remi-dupre remi-dupre merged commit 0714cba into master Mar 26, 2021
@remi-dupre remi-dupre deleted the classif-wrapper branch March 26, 2021 08:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants