Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

fix Natural Question inference processing#521

Merged
Timoeller merged 2 commits intomasterfrom
fix_nq_inference
Sep 7, 2020
Merged

fix Natural Question inference processing#521
Timoeller merged 2 commits intomasterfrom
fix_nq_inference

Conversation

@Timoeller
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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!

@Timoeller Timoeller merged commit d7b5cb6 into master Sep 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants