Update testing.py
Browse files- testing.py +3 -3
testing.py
CHANGED
@@ -198,8 +198,8 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
|
|
198 |
yield key, {
|
199 |
"id": data["id"],
|
200 |
"answer": data["answer"],
|
201 |
-
"text": data["text"],
|
202 |
"type": data["type"],
|
203 |
-
"question": data["question"],
|
204 |
-
"options": data["options"],
|
205 |
}
|
|
|
198 |
yield key, {
|
199 |
"id": data["id"],
|
200 |
"answer": data["answer"],
|
201 |
+
"text": data["text"].strip(),
|
202 |
"type": data["type"],
|
203 |
+
"question": data["question"].strip(),
|
204 |
+
"options": [x.strip() for x in data["options"]],
|
205 |
}
|