-
Notifications
You must be signed in to change notification settings - Fork 21
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
Comments
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. |
Yeah I modified a bit the code to expose the probability. |
@alex-movila BERT, by default, will give an answer to all questions. Even if that question is irrelevant to Context. 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. |
Is it fixed now? |
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.
The text was updated successfully, but these errors were encountered: