Commit
·
484fbc8
1
Parent(s):
ef08ca1
Update slue-phase-2.py
Browse files- slue-phase-2.py +2 -2
slue-phase-2.py
CHANGED
@@ -431,9 +431,9 @@ class SLUE2(datasets.GeneratorBasedBuilder):
|
|
431 |
"word_timestamps": read_word_timestamps(word_alignments_fn),
|
432 |
}
|
433 |
if self.config.name == "ted":
|
434 |
-
split = "test" if "test" in filepath else "dev" if "dev" in filepath else "
|
435 |
audio_file = os.path.join(
|
436 |
-
data_dir,
|
437 |
row["id"] + ".flac"
|
438 |
)
|
439 |
if "title" not in row:
|
|
|
431 |
"word_timestamps": read_word_timestamps(word_alignments_fn),
|
432 |
}
|
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:
|