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

use tasks name instead of config name

Browse files
Files changed (1) hide show
  1. superlim-2.py +3 -3
superlim-2.py CHANGED
@@ -329,7 +329,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
329
  def _split_generators(self, dl_manager):
330
  file_format = 'jsonl'
331
  splits = []
332
- data_dir_test = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],f"{self.config.name}_test.{file_format}"))
333
  split_test = datasets.SplitGenerator(
334
  name=datasets.Split.TEST,
335
  # These kwargs will be passed to _generate_examples
@@ -340,7 +340,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
340
  )
341
  splits.append(split_test)
342
  if self.config.name in ("absabank", "dalaj", "swefaq", "swewic", "swedn"):
343
- data_dir_dev = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],f"{self.config.name}_dev.{file_format}"))
344
  split_dev = datasets.SplitGenerator(
345
  name=datasets.Split.VALIDATION,
346
  # These kwargs will be passed to _generate_examples
@@ -351,7 +351,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
351
  )
352
  splits.append(split_dev)
353
  if self.config.name in ("absabank", "dalaj", "swefaq", "swewic", "argumentation_sent", "swedn"):
354
- data_dir_train = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],f"{self.config.name}_train.{file_format}"))
355
  split_train = datasets.SplitGenerator(
356
  name=datasets.Split.TRAIN,
357
  # These kwargs will be passed to _generate_examples
 
329
  def _split_generators(self, dl_manager):
330
  file_format = 'jsonl'
331
  splits = []
332
+ data_dir_test = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],f"{_TASKS[self.config.name]}_test.{file_format}"))
333
  split_test = datasets.SplitGenerator(
334
  name=datasets.Split.TEST,
335
  # These kwargs will be passed to _generate_examples
 
340
  )
341
  splits.append(split_test)
342
  if self.config.name in ("absabank", "dalaj", "swefaq", "swewic", "swedn"):
343
+ data_dir_dev = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],f"{_TASKS[self.config.name]}_dev.{file_format}"))
344
  split_dev = datasets.SplitGenerator(
345
  name=datasets.Split.VALIDATION,
346
  # These kwargs will be passed to _generate_examples
 
351
  )
352
  splits.append(split_dev)
353
  if self.config.name in ("absabank", "dalaj", "swefaq", "swewic", "argumentation_sent", "swedn"):
354
+ data_dir_train = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name],f"{_TASKS[self.config.name]}_train.{file_format}"))
355
  split_train = datasets.SplitGenerator(
356
  name=datasets.Split.TRAIN,
357
  # These kwargs will be passed to _generate_examples