update dataset
Browse files- tydiqa-goldp-th.py +9 -16
- tydiqa.dev.jsonl +0 -0
- tydiqa.train.jsonl +0 -0
tydiqa-goldp-th.py
CHANGED
@@ -53,17 +53,15 @@ class tydiqa_GoldP_th(datasets.GeneratorBasedBuilder):
|
|
53 |
return datasets.DatasetInfo(
|
54 |
description=_DESCRIPTION,
|
55 |
features=datasets.Features({
|
56 |
-
"
|
57 |
-
|
58 |
-
"
|
59 |
-
"
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
"id": datasets.Value("string"),
|
66 |
-
})
|
67 |
})
|
68 |
}),
|
69 |
# No default supervised_keys (as we have to pass both question
|
@@ -71,11 +69,6 @@ class tydiqa_GoldP_th(datasets.GeneratorBasedBuilder):
|
|
71 |
supervised_keys=None,
|
72 |
homepage="https://github.com/google-research-datasets/tydiqa",
|
73 |
citation=_CITATION,
|
74 |
-
task_templates=[
|
75 |
-
QuestionAnsweringExtractive(
|
76 |
-
question_column="question", context_column="context", answers_column="answers"
|
77 |
-
)
|
78 |
-
],
|
79 |
)
|
80 |
|
81 |
def _split_generators(self, dl_manager):
|
|
|
53 |
return datasets.DatasetInfo(
|
54 |
description=_DESCRIPTION,
|
55 |
features=datasets.Features({
|
56 |
+
"context": datasets.Value("string"),
|
57 |
+
"qas": datasets.features.Sequence({
|
58 |
+
"answers": datasets.features.Sequence({
|
59 |
+
"answer_start": datasets.Value("int32"),
|
60 |
+
"answer_end": datasets.Value("int32"),
|
61 |
+
"text": datasets.Value("string"),
|
62 |
+
}),
|
63 |
+
"question": datasets.Value("string"),
|
64 |
+
"id": datasets.Value("string"),
|
|
|
|
|
65 |
})
|
66 |
}),
|
67 |
# No default supervised_keys (as we have to pass both question
|
|
|
69 |
supervised_keys=None,
|
70 |
homepage="https://github.com/google-research-datasets/tydiqa",
|
71 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
72 |
)
|
73 |
|
74 |
def _split_generators(self, dl_manager):
|
tydiqa.dev.jsonl
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tydiqa.train.jsonl
CHANGED
The diff for this file is too large to render.
See raw diff
|
|