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

fix Natural Question inference processing #521

Merged
merged 2 commits into from
Sep 7, 2020
Merged

Conversation

Timoeller
Copy link
Contributor

@Timoeller Timoeller commented Sep 5, 2020

When extracting IDs from the input we run into errors.

This is a quick fix fixing #520 catching the exception, since we do not need these IDs.
We should investigate for a better solution and create NQ test cases for training and inferencing @brandenchan

@brandenchan
Copy link
Contributor

Yup this quick fix is sufficient for now. There will be a bigger refactor coming where we merge the SQuAD and NQ processors. There we can more accurately define the supported inference input. We should also write tests to ensure that each inference input format works.

@Timoeller
Copy link
Contributor Author

k, thanks for the input. Merging this now as fix.

@Timoeller Timoeller changed the title WIP: fix Natural Question inference processing fix Natural Question inference processing Sep 7, 2020
Copy link
Contributor

@brandenchan brandenchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from changing the input file, this all looks good to me!

examples/natural_questions.py Outdated Show resolved Hide resolved
@Timoeller Timoeller merged commit d7b5cb6 into master Sep 7, 2020
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

Successfully merging this pull request may close these issues.

2 participants