Felix commited on
Commit
59a5da9
1 Parent(s): a81208c

complete typing for swesat

Browse files
Files changed (1) hide show
  1. superlim-2.py +12 -12
superlim-2.py CHANGED
@@ -282,18 +282,18 @@ class SuperLim(datasets.GeneratorBasedBuilder):
282
  }
283
  )
284
  elif self.config.name == "swesat":
285
- features = datasets.Features(
286
- {
287
- "id": datasets.Value("string"),
288
- "item": datasets.Value("string"),
289
- "candidate_answers": datasets.Sequence(
290
- datasets.Value("string"),
291
- length=5)
292
- ,
293
- "label": datasets.Value("string"),
294
- "meta": datasets.Value("string")
295
- }
296
- )
297
  elif self.config.name == "swesim_relatedness":
298
  features = datasets.Features(
299
  {
 
282
  }
283
  )
284
  elif self.config.name == "swesat":
285
+ features = datasets.Features({
286
+ "id": datasets.Value("string"),
287
+ "item": datasets.Value("string"),
288
+ "candidate_answers": datasets.Sequence(
289
+ datasets.Value("string"),
290
+ length=5)
291
+ ,
292
+ "label": datasets.ClassLabel(5),
293
+ "meta": datasets.Features({
294
+ "comment": datasets.Value("string")
295
+ })
296
+ })
297
  elif self.config.name == "swesim_relatedness":
298
  features = datasets.Features(
299
  {