Commit
·
8830e9d
1
Parent(s):
bc664a9
Update slue-phase-2.py
Browse files- 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 |
-
|
| 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:
|