Felix commited on
Commit
3bcb3c1
1 Parent(s): 3affcf8

add proper typing to swefaq

Browse files
Files changed (1) hide show
  1. superlim-2.py +9 -5
superlim-2.py CHANGED
@@ -243,10 +243,14 @@ class SuperLim(datasets.GeneratorBasedBuilder):
243
  elif self.config.name == "swefaq":
244
  features = datasets.Features({
245
  "category_id": datasets.Value("string"),
246
- "candidate_answers": datasets.Value("string"),
247
  "question": datasets.Value("string"),
248
- "label": datasets.Value("string"),
249
- "meta": datasets.Value("string"),
 
 
 
 
250
  })
251
  elif self.config.name == 'swemnli':
252
  features = datasets.Features({
@@ -269,8 +273,8 @@ class SuperLim(datasets.GeneratorBasedBuilder):
269
  "item": datasets.Value("string"),
270
  "candidate_answers": datasets.Sequence(
271
  datasets.Value("string"),
272
- length=5)
273
- ,
274
  "label": datasets.ClassLabel(5),
275
  "meta": datasets.Features({
276
  "comment": datasets.Value("string")
 
243
  elif self.config.name == "swefaq":
244
  features = datasets.Features({
245
  "category_id": datasets.Value("string"),
246
+ "candidate_answers": datasets.Sequence(datasets.Value("string")),
247
  "question": datasets.Value("string"),
248
+ "label": datasets.Value(dtype='int32'),
249
+ "meta": datasets.Features({
250
+ "category": datasets.Value("string"),
251
+ "source": datasets.Value("string"),
252
+ "link": datasets.Value("string"),
253
+ })
254
  })
255
  elif self.config.name == 'swemnli':
256
  features = datasets.Features({
 
273
  "item": datasets.Value("string"),
274
  "candidate_answers": datasets.Sequence(
275
  datasets.Value("string"),
276
+ length=5
277
+ ),
278
  "label": datasets.ClassLabel(5),
279
  "meta": datasets.Features({
280
  "comment": datasets.Value("string")