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

Question Answering improvements - NQ3#419

Merged
Timoeller merged 47 commits intomasterfrom
more_improvements
Jul 3, 2020
Merged

Question Answering improvements - NQ3#419
Timoeller merged 47 commits intomasterfrom
more_improvements

Conversation

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

@brandenchan brandenchan requested review from Timoeller and tholor June 25, 2020 10:25
@Timoeller Timoeller changed the title WIP: More Question Answering improvements Question Answering improvements - NQ3 Jul 3, 2020
Copy link
Copy Markdown
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


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
Copy Markdown
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 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