Felix commited on
Commit
310146c
1 Parent(s): b808a9e

change supersim labels to type float

Browse files
Files changed (1) hide show
  1. superlim-2.py +2 -2
superlim-2.py CHANGED
@@ -278,13 +278,13 @@ class SuperLim(datasets.GeneratorBasedBuilder):
278
  features = datasets.Features({
279
  "word_1": datasets.Value("string"),
280
  "word_2": datasets.Value("string"),
281
- "label": datasets.Value("string"),
282
  })
283
  elif self.config.name == "swesim_similarity":
284
  features = datasets.Features({
285
  "word_1": datasets.Value("string"),
286
  "word_2": datasets.Value("string"),
287
- "label": datasets.Value("string"),
288
  })
289
  elif self.config.name == "swewic":
290
  features = datasets.Features({
 
278
  features = datasets.Features({
279
  "word_1": datasets.Value("string"),
280
  "word_2": datasets.Value("string"),
281
+ "label": datasets.Value(dtype='float32')
282
  })
283
  elif self.config.name == "swesim_similarity":
284
  features = datasets.Features({
285
  "word_1": datasets.Value("string"),
286
  "word_2": datasets.Value("string"),
287
+ "label": datasets.Value(dtype='float32')
288
  })
289
  elif self.config.name == "swewic":
290
  features = datasets.Features({