Datasets:

ArXiv:
License:
xinjianl commited on
Commit
70db5c5
1 Parent(s): 16a6b55

update loader to fix empty extraction issue

Browse files
Files changed (1) hide show
  1. yodas.py +2 -1
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
- print(extracted_dir)
 
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):