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

For non-answerable questions does not seem to work #4

Open
alex-movila opened this issue Jul 15, 2019 · 4 comments
Open

For non-answerable questions does not seem to work #4

alex-movila opened this issue Jul 15, 2019 · 4 comments

Comments

@alex-movila
Copy link

Hi, I tested with your script with downloaded model Bert-on-Squad-V2.0
I asked questions like:
When BERT was born?
Who created Earth?

The answers are nonsensical instead of answering "I can't answer"
This is disappointing.

@surbhardwaj
Copy link
Owner

Hi, that thing can be fixed by making the changes in predict function, I need to apply some threshold over the outputs obtained. I''ll fix it.
Thanks for pointing out this. :)

@alex-movila
Copy link
Author

Yeah I modified a bit the code to expose the probability.
A configurable threshold could help.

@the-black-knight-01
Copy link

the-black-knight-01 commented Aug 6, 2019

@alex-movila BERT, by default, will give an answer to all questions. Even if that question is irrelevant to Context.
That was the problem with BERT. To Remove this problem, Google comes with a new Model, XLNET
You can try that.

In BERT even if you will put 66% as the threshold. then also irrelevant answer you will get. Also, you will lose a lot of the right answers.

@desaibhargav
Copy link

Hi, that thing can be fixed by making the changes in predict function, I need to apply some threshold over the outputs obtained. I''ll fix it.
Thanks for pointing out this. :)

Is it fixed now?

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

4 participants