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

Question Answering improvements - NQ3 #419

Merged
merged 47 commits into from
Jul 3, 2020
Merged

Question Answering improvements - NQ3 #419

merged 47 commits into from
Jul 3, 2020

Conversation

brandenchan
Copy link
Contributor

@brandenchan brandenchan commented Jun 23, 2020

Rename samples to passages
Rename is_impossible to no_answer
Rename preds_p to preds
Add QAInferencer with type hints
Add check that label character index matches label str
span_to_string now a method of QACandidate
Better documentation of Prediction Objects

@Timoeller Timoeller changed the title WIP: More Question Answering improvements Question Answering improvements - NQ3 Jul 3, 2020
Copy link
Contributor

@Timoeller Timoeller left a comment

Choose a reason for hiding this comment

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

code looks good + tested on accuracy benchmark

@@ -410,7 +410,7 @@ def generate_labels(answers, passage_len_t, question_len_t, tokenizer, max_answe
["no_answer", "yes", "no", "span"] and this is what answer_type_list should look like"""

label_idxs = np.full((max_answers, 2), fill_value=-1)
answer_types = np.full((max_answers), fill_value=-1)
answer_types = np.full((1), fill_value=-1)
Copy link
Contributor

Choose a reason for hiding this comment

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

a single scalar value needs init?

@Timoeller Timoeller merged commit f04c230 into master Jul 3, 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.

None yet

2 participants