update loader to fix empty extraction issue
Browse files
yodas.py
CHANGED
@@ -127,7 +127,8 @@ class Yodas(datasets.GeneratorBasedBuilder):
|
|
127 |
for extracted_dir, text_file in zip(audio_archives, text_archives):
|
128 |
|
129 |
utt2text = {}
|
130 |
-
|
|
|
131 |
|
132 |
with open(text_file) as f:
|
133 |
for _, row in enumerate(f):
|
|
|
127 |
for extracted_dir, text_file in zip(audio_archives, text_archives):
|
128 |
|
129 |
utt2text = {}
|
130 |
+
extract_root_dir = Path(extracted_dir).parent
|
131 |
+
extracted_dir = list(extract_root_dir.glob('./*'))[0]
|
132 |
|
133 |
with open(text_file) as f:
|
134 |
for _, row in enumerate(f):
|