fix: pathing
Browse files- asr_sundanese_4_pbl.py +2 -2
asr_sundanese_4_pbl.py
CHANGED
@@ -113,7 +113,7 @@ class SuIdASR(datasets.GeneratorBasedBuilder):
|
|
113 |
|
114 |
if self.config.schema == "source" or self.config.schema == "seacrowd_sptext":
|
115 |
|
116 |
-
tsv_file = os.path.join(filepath, "asr_sundanese", "utt_spk_text.tsv")
|
117 |
|
118 |
with open(tsv_file, "r") as file:
|
119 |
tsv_file = csv.reader(file, delimiter="\t")
|
@@ -121,7 +121,7 @@ class SuIdASR(datasets.GeneratorBasedBuilder):
|
|
121 |
for line in tsv_file:
|
122 |
audio_id, speaker_id, transcription_text = line[0], line[1], line[2]
|
123 |
|
124 |
-
wav_path = os.path.join(filepath, "asr_sundanese", "data", "{}".format(audio_id[:2]), "{}.flac".format(audio_id))
|
125 |
|
126 |
if os.path.exists(wav_path):
|
127 |
if self.config.schema == "source":
|
|
|
113 |
|
114 |
if self.config.schema == "source" or self.config.schema == "seacrowd_sptext":
|
115 |
|
116 |
+
tsv_file = os.path.join(filepath, "asr_sundanese", "asr_sundanese", "utt_spk_text.tsv")
|
117 |
|
118 |
with open(tsv_file, "r") as file:
|
119 |
tsv_file = csv.reader(file, delimiter="\t")
|
|
|
121 |
for line in tsv_file:
|
122 |
audio_id, speaker_id, transcription_text = line[0], line[1], line[2]
|
123 |
|
124 |
+
wav_path = os.path.join(filepath, "asr_sundanese", "asr_sundanese", "data", "{}".format(audio_id[:2]), "{}.flac".format(audio_id))
|
125 |
|
126 |
if os.path.exists(wav_path):
|
127 |
if self.config.schema == "source":
|