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

Doesn't know the answer #273

Open
mishav78 opened this issue Dec 19, 2021 · 8 comments
Open

Doesn't know the answer #273

mishav78 opened this issue Dec 19, 2021 · 8 comments

Comments

@mishav78
Copy link

If the system doesn't know the answer will it return the best fitting paragraph?

@ajfisch
Copy link
Contributor

ajfisch commented Dec 19, 2021

It will always return whatever the argmax span is from the top-k paragraphs (even though they might be low confidence).

@mishav78
Copy link
Author

mishav78 commented Dec 19, 2021 via email

@ajfisch
Copy link
Contributor

ajfisch commented Dec 19, 2021

The top span is the predicted answer.

@mishav78
Copy link
Author

mishav78 commented Dec 19, 2021 via email

@ajfisch
Copy link
Contributor

ajfisch commented Dec 19, 2021

It's unclear what your question is. The model follows the same procedure for any input: its output will always consist of a single answer span. You can also see which paragraph and document the answer came from.

@mishav78
Copy link
Author

mishav78 commented Dec 19, 2021 via email

@ajfisch
Copy link
Contributor

ajfisch commented Dec 19, 2021

Yep, in that example the document is "New York Yankees" and the context is the paragraph from which "Don Larsen" (the answer) was extracted.

Predictions are returned as dictionaries, see the example code that generated the demo output: https://github.com/facebookresearch/DrQA/blob/main/scripts/pipeline/interactive.py#L79-L101

@mishav78
Copy link
Author

mishav78 commented Dec 19, 2021 via email

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

2 participants