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

wit chooses the entity with low confidence #97

Open
akasranjan005 opened this issue Jul 10, 2017 · 0 comments
Open

wit chooses the entity with low confidence #97

akasranjan005 opened this issue Jul 10, 2017 · 0 comments

Comments

@akasranjan005
Copy link

akasranjan005 commented Jul 10, 2017

I have a bot to get mobile number of user and send OTP, in webchat everything is fine but in skype, the skype gives the url to every mobile number which creates exception for the bot, but still it gets 3 entities, out which one is with conifdence 1 and have the correct/required values

{u'otp_value': [{u'suggested': True, u'confidence': 0.36571505592569503, u'type': u'value', u'value': u'>'}], u'contact_number': [{u'confidence': 1, u'type': u'value', u'value': u'+917809899999'}, {u'confidence': 1, u'type': u'value', u'value': u'+917809899999'}]}

but by default the wit processes the first entity and not the entity with highest confidence. How can i integrate this logic. I am using run_actions() to process the text received from the user

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

No branches or pull requests

1 participant