Update testing.py
Browse files- testing.py +1 -3
testing.py
CHANGED
|
@@ -100,7 +100,6 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
|
|
| 100 |
{
|
| 101 |
"answer": datasets.Value("int32"),
|
| 102 |
"text": datasets.Value("string"),
|
| 103 |
-
# "type" is a dict with arbitrary keys and values
|
| 104 |
"question": datasets.Value("string"),
|
| 105 |
"options": datasets.features.Sequence(datasets.Value("string")),
|
| 106 |
}
|
|
@@ -123,7 +122,7 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
|
|
| 123 |
"answer": datasets.Value("int32"),
|
| 124 |
"text": datasets.Value("string"),
|
| 125 |
# "type" is a dict with arbitrary keys and values
|
| 126 |
-
"type":
|
| 127 |
"question": datasets.Value("string"),
|
| 128 |
"options": datasets.features.Sequence(datasets.Value("string")),
|
| 129 |
}
|
|
@@ -196,7 +195,6 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
|
|
| 196 |
}
|
| 197 |
|
| 198 |
else:
|
| 199 |
-
data["type"] = ast.literal_eval(data["type"])
|
| 200 |
yield key, {
|
| 201 |
"id": data["id"],
|
| 202 |
"answer": data["answer"],
|
|
|
|
| 100 |
{
|
| 101 |
"answer": datasets.Value("int32"),
|
| 102 |
"text": datasets.Value("string"),
|
|
|
|
| 103 |
"question": datasets.Value("string"),
|
| 104 |
"options": datasets.features.Sequence(datasets.Value("string")),
|
| 105 |
}
|
|
|
|
| 122 |
"answer": datasets.Value("int32"),
|
| 123 |
"text": datasets.Value("string"),
|
| 124 |
# "type" is a dict with arbitrary keys and values
|
| 125 |
+
"type": datasets.Value("string"),
|
| 126 |
"question": datasets.Value("string"),
|
| 127 |
"options": datasets.features.Sequence(datasets.Value("string")),
|
| 128 |
}
|
|
|
|
| 195 |
}
|
| 196 |
|
| 197 |
else:
|
|
|
|
| 198 |
yield key, {
|
| 199 |
"id": data["id"],
|
| 200 |
"answer": data["answer"],
|