Datasets:

Modalities:
Audio
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
Dask
sshon-asapp commited on
Commit
8830e9d
1 Parent(s): bc664a9

Update slue-phase-2.py

Browse files
Files changed (1) hide show
  1. slue-phase-2.py +2 -2
slue-phase-2.py CHANGED
@@ -292,7 +292,7 @@ class SLUE2(datasets.GeneratorBasedBuilder):
292
  "filepath": os.path.join(
293
  os.path.join(train_dl_dir, f"{config_name}_train") or "", f"{config_name}_train.tsv"
294
  ),
295
- "data_dir": os.path.join(train_dl_dir, config_name),
296
  },
297
  )
298
  )
@@ -433,7 +433,7 @@ class SLUE2(datasets.GeneratorBasedBuilder):
433
  if self.config.name == "ted":
434
  split = "test" if "test" in filepath else "dev" if "dev" in filepath else "train"
435
  audio_file = os.path.join(
436
- f"{data_dir}_{split}", split,
437
  row["id"] + ".flac"
438
  )
439
  if "title" not in row:
 
292
  "filepath": os.path.join(
293
  os.path.join(train_dl_dir, f"{config_name}_train") or "", f"{config_name}_train.tsv"
294
  ),
295
+ "data_dir": os.path.join(train_dl_dir, config_name+"_train"),
296
  },
297
  )
298
  )
 
433
  if self.config.name == "ted":
434
  split = "test" if "test" in filepath else "dev" if "dev" in filepath else "train"
435
  audio_file = os.path.join(
436
+ data_dir, split,
437
  row["id"] + ".flac"
438
  )
439
  if "title" not in row: