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 bugs in NewsQA dataset #3734

Merged
merged 6 commits into from
Feb 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Features inside Features
  • Loading branch information
albertvillanova committed Feb 16, 2022
commit 865c7d4b6f7d7baae925bee8919f47ee59309f27
14 changes: 6 additions & 8 deletions datasets/newsqa/newsqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,12 @@ def _info(self):
"q": datasets.Value("string"),
"isAnswerAbsent": datasets.Value("int32"),
"isQuestionBad": datasets.Value("int32"),
"consensus": datasets.Features(
{
"s": datasets.Value("int32"),
"e": datasets.Value("int32"),
"badQuestion": datasets.Value("bool"),
"noAnswer": datasets.Value("bool"),
}
),
"consensus": {
"s": datasets.Value("int32"),
"e": datasets.Value("int32"),
"badQuestion": datasets.Value("bool"),
"noAnswer": datasets.Value("bool"),
},
"answers": datasets.features.Sequence(
{
"sourcerAnswers": datasets.features.Sequence(
Expand Down