Datasets:
Update poquad.py
Browse files
poquad.py
CHANGED
@@ -54,7 +54,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
|
|
54 |
# datasets.features.FeatureConnectors
|
55 |
features=datasets.Features(
|
56 |
{
|
57 |
-
"
|
58 |
"title": datasets.Value("string"),
|
59 |
"context": datasets.Value("string"),
|
60 |
"question": datasets.Value("string"),
|
@@ -125,7 +125,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
|
|
125 |
# Others are extracted here for the ease of future expansions.
|
126 |
id_ += 1
|
127 |
yield str(id_), {
|
128 |
-
"
|
129 |
"title": title,
|
130 |
"context": context,
|
131 |
"question": question,
|
|
|
54 |
# datasets.features.FeatureConnectors
|
55 |
features=datasets.Features(
|
56 |
{
|
57 |
+
"idX": datasets.Value("string"),
|
58 |
"title": datasets.Value("string"),
|
59 |
"context": datasets.Value("string"),
|
60 |
"question": datasets.Value("string"),
|
|
|
125 |
# Others are extracted here for the ease of future expansions.
|
126 |
id_ += 1
|
127 |
yield str(id_), {
|
128 |
+
"idY": str(id_),
|
129 |
"title": title,
|
130 |
"context": context,
|
131 |
"question": question,
|