Datasets:
ToluClassics
commited on
Commit
·
20a75c8
1
Parent(s):
f5b5171
modify files
Browse files- afriqa-gold-passages.py +3 -0
afriqa-gold-passages.py
CHANGED
@@ -103,6 +103,9 @@ class AfriQA(datasets.GeneratorBasedBuilder):
|
|
103 |
example = json.loads(row)
|
104 |
_id = example["id"]
|
105 |
|
|
|
|
|
|
|
106 |
yield _id, {
|
107 |
"question_lang": example["question_lang"],
|
108 |
"question_translated": example["question_translated"],
|
|
|
103 |
example = json.loads(row)
|
104 |
_id = example["id"]
|
105 |
|
106 |
+
if not example["context"] or not example["answer_pivot"]["answer_start"]:
|
107 |
+
continue
|
108 |
+
|
109 |
yield _id, {
|
110 |
"question_lang": example["question_lang"],
|
111 |
"question_translated": example["question_translated"],
|