Fix wrong error/no error in GEC
Browse files
quiz.py
CHANGED
@@ -87,7 +87,7 @@ def icelandic_sentence_gec_preprocessing(sample):
|
|
87 |
f"Inniheldur eftirfarandi málsgrein villu?<p style='margin-left: 25px;'><i>{sample['sentence']}</i></p>"
|
88 |
)
|
89 |
new_sample["options"] = "Villa", "Engin villa"
|
90 |
-
new_sample["answer"] = "
|
91 |
new_sample["instruction"] = "Valkostir"
|
92 |
return new_sample
|
93 |
|
|
|
87 |
f"Inniheldur eftirfarandi málsgrein villu?<p style='margin-left: 25px;'><i>{sample['sentence']}</i></p>"
|
88 |
)
|
89 |
new_sample["options"] = "Villa", "Engin villa"
|
90 |
+
new_sample["answer"] = "Villa" if sample["correct"] == "false" else "Engin villa"
|
91 |
new_sample["instruction"] = "Valkostir"
|
92 |
return new_sample
|
93 |
|