fix filepath
Browse files- aloresb.py +9 -10
aloresb.py
CHANGED
@@ -61,17 +61,16 @@ class Aloresb(datasets.GeneratorBasedBuilder):
|
|
61 |
"""
|
62 |
Returns SplitGenerators.
|
63 |
"""
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
"test": self.config.data_root_url + "/test/audio_filenames.txt",
|
74 |
-
})
|
75 |
|
76 |
audio_archives = {}
|
77 |
for split in audio_filenames_paths:
|
|
|
61 |
"""
|
62 |
Returns SplitGenerators.
|
63 |
"""
|
64 |
+
_transcripts = {}
|
65 |
+
_audio_filenames = {}
|
66 |
+
for split in ["train", "dev", "test"]:
|
67 |
+
if os.path.exists(self.config.data_root_url + "/" + split + "/transcripts.txt"):
|
68 |
+
_transcripts[split] = self.config.data_root_url + "/" + split + "/transcripts.txt"
|
69 |
+
_audio_filenames[split] = self.config.data_root_url + "/" + split + "/audio_filenames.txt"
|
70 |
|
71 |
+
transcripts = dl_manager.download(_transcripts)
|
72 |
+
|
73 |
+
audio_filenames_paths = dl_manager.download(_audio_filenames)
|
|
|
|
|
74 |
|
75 |
audio_archives = {}
|
76 |
for split in audio_filenames_paths:
|