Felix commited on
Commit
ccae210
1 Parent(s): 475495e

update swesat

Browse files
Files changed (1) hide show
  1. superlim-2.py +10 -12
superlim-2.py CHANGED
@@ -224,12 +224,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
224
  elif self.config.name == "swesat":
225
  features = datasets.Features(
226
  {
227
- "target_item": datasets.Value("string"),
228
- "answer_1": datasets.Value("string"),
229
- "answer_2": datasets.Value("string"),
230
- "answer_3": datasets.Value("string"),
231
- "answer_4": datasets.Value("string"),
232
- "answer_5": datasets.Value("string"),
233
  }
234
  )
235
  elif self.config.name == "swesim_relatedness":
@@ -402,12 +401,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
402
  }
403
  elif self.config.name == "swesat":
404
  yield key, {
405
- "target_item": row["target_item"],
406
- "answer_1": row["answer_1"],
407
- "answer_2": row["answer_2"],
408
- "answer_3": row["answer_3"],
409
- "answer_4": row["answer_4"],
410
- "answer_5": row["answer_5"],
411
  }
412
  elif self.config.name == "swesim_relatedness":
413
  yield key, {
 
224
  elif self.config.name == "swesat":
225
  features = datasets.Features(
226
  {
227
+ "id": datasets.Value("string"),
228
+ "item": datasets.Value("string"),
229
+ "candidate_answers": datasets.Value("string"),
230
+ "label": datasets.Value("string"),
231
+ "meta": datasets.Value("string")
 
232
  }
233
  )
234
  elif self.config.name == "swesim_relatedness":
 
401
  }
402
  elif self.config.name == "swesat":
403
  yield key, {
404
+ "id": row["id"],
405
+ "item": row["item"],
406
+ "candidate_answers": row["candidate_answers"],
407
+ "label": row["label"],
408
+ "meta": row["meta"],
 
409
  }
410
  elif self.config.name == "swesim_relatedness":
411
  yield key, {