qanastek commited on
Commit
4c75bc6
·
1 Parent(s): ef7e476

Update DEFT2020.py

Browse files
Files changed (1) hide show
  1. DEFT2020.py +4 -4
DEFT2020.py CHANGED
@@ -198,8 +198,8 @@ class FrenchMedMCQA(datasets.GeneratorBasedBuilder):
198
  "vote": d["@vote"],
199
  "moy": d["@moy"],
200
  "scores": [float(a) for a in d["@scores"].split(",")],
201
- "source": d["source"],
202
- "cible": d["cible"],
203
  })
204
 
205
  elif self.config.name == "task_2":
@@ -214,14 +214,14 @@ class FrenchMedMCQA(datasets.GeneratorBasedBuilder):
214
  obj = {
215
  "id": d["@id"],
216
  "correct_cible": str(d["@cible"]),
217
- "source": d["source"],
218
  "cible_1": None,
219
  "cible_2": None,
220
  "cible_3": None,
221
  }
222
 
223
  for t in d["cible"]:
224
- obj[f"cible_{t['@num']}"] = t["#text"]
225
 
226
  all_res.append(obj)
227
 
 
198
  "vote": d["@vote"],
199
  "moy": d["@moy"],
200
  "scores": [float(a) for a in d["@scores"].split(",")],
201
+ "source": d["source"].lower(),
202
+ "cible": d["cible"].lower(),
203
  })
204
 
205
  elif self.config.name == "task_2":
 
214
  obj = {
215
  "id": d["@id"],
216
  "correct_cible": str(d["@cible"]),
217
+ "source": d["source"].lower(),
218
  "cible_1": None,
219
  "cible_2": None,
220
  "cible_3": None,
221
  }
222
 
223
  for t in d["cible"]:
224
+ obj[f"cible_{t['@num']}"] = t["#text"].lower()
225
 
226
  all_res.append(obj)
227