Datasets:
Update TopiOCQA.py
Browse files- TopiOCQA.py +7 -1
TopiOCQA.py
CHANGED
|
@@ -54,7 +54,7 @@ class TopiOCQA(datasets.GeneratorBasedBuilder):
|
|
| 54 |
BUILDER_CONFIGS = [
|
| 55 |
TopiOCQAConfig(
|
| 56 |
name="plain_text",
|
| 57 |
-
version=datasets.Version("1.0.
|
| 58 |
description="Plain text",
|
| 59 |
),
|
| 60 |
]
|
|
@@ -81,6 +81,11 @@ class TopiOCQA(datasets.GeneratorBasedBuilder):
|
|
| 81 |
"Rationale": datasets.Value("string"),
|
| 82 |
}
|
| 83 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
),
|
| 86 |
supervised_keys=None,
|
|
@@ -113,6 +118,7 @@ class TopiOCQA(datasets.GeneratorBasedBuilder):
|
|
| 113 |
"is_nq": data["is_nq"],
|
| 114 |
"Context": data["Context"],
|
| 115 |
"Additional_answers": data["Additional_answers"],
|
|
|
|
| 116 |
}
|
| 117 |
key += 1
|
| 118 |
|
|
|
|
| 54 |
BUILDER_CONFIGS = [
|
| 55 |
TopiOCQAConfig(
|
| 56 |
name="plain_text",
|
| 57 |
+
version=datasets.Version("1.0.1", ""),
|
| 58 |
description="Plain text",
|
| 59 |
),
|
| 60 |
]
|
|
|
|
| 81 |
"Rationale": datasets.Value("string"),
|
| 82 |
}
|
| 83 |
),
|
| 84 |
+
"Gold_passage": {
|
| 85 |
+
"id": datasets.Value("string"),
|
| 86 |
+
"title": datasets.Value("string"),
|
| 87 |
+
"text": datasets.Value("string"),
|
| 88 |
+
}
|
| 89 |
}
|
| 90 |
),
|
| 91 |
supervised_keys=None,
|
|
|
|
| 118 |
"is_nq": data["is_nq"],
|
| 119 |
"Context": data["Context"],
|
| 120 |
"Additional_answers": data["Additional_answers"],
|
| 121 |
+
"Gold_passage": data["Gold_passage"],
|
| 122 |
}
|
| 123 |
key += 1
|
| 124 |
|