gardari commited on
Commit
3ad2259
1 Parent(s): 5f0d791

Fix wrong error/no error in GEC

Browse files
Files changed (1) hide show
  1. quiz.py +1 -1
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"] = "Engin villa" if sample["correct"] == "false" else "Villa"
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