Felix commited on
Commit
15f54c7
1 Parent(s): 6656c99

update swefaq

Browse files
Files changed (1) hide show
  1. superlim-2.py +6 -10
superlim-2.py CHANGED
@@ -210,12 +210,10 @@ class SuperLim(datasets.GeneratorBasedBuilder):
210
  features = datasets.Features(
211
  {
212
  "category_id": datasets.Value("string"),
213
- "source": datasets.Value("string"),
214
- "question_id": datasets.Value("string"),
215
  "question": datasets.Value("string"),
216
- "answer_id": datasets.Value("string"),
217
- "correct_answer": datasets.Value("string"),
218
- "link": datasets.Value("string"),
219
  }
220
  )
221
  elif self.config.name == "swepar":
@@ -396,12 +394,10 @@ class SuperLim(datasets.GeneratorBasedBuilder):
396
  elif self.config.name == "swefaq":
397
  yield key, {
398
  "category_id": row['category_id'],
399
- "source": row['source'],
400
- "question_id": row['question_id'],
401
  "question": row["question"],
402
- "answer_id": row['answer_id'],
403
- "correct_answer": row["correct_answer"],
404
- "link": row['link']
405
  }
406
  elif self.config.name == "swepar":
407
  yield key, {
 
210
  features = datasets.Features(
211
  {
212
  "category_id": datasets.Value("string"),
213
+ "candidate_answers": datasets.Value("string"),
 
214
  "question": datasets.Value("string"),
215
+ "label": datasets.Value("string"),
216
+ "meta": datasets.Value("string"),
 
217
  }
218
  )
219
  elif self.config.name == "swepar":
 
394
  elif self.config.name == "swefaq":
395
  yield key, {
396
  "category_id": row['category_id'],
 
 
397
  "question": row["question"],
398
+ "candidate_answers": row['candidate_answers'],
399
+ "label": row["label"],
400
+ "meta": row['meta'],
401
  }
402
  elif self.config.name == "swepar":
403
  yield key, {