Datasets:
Commit
•
30864d0
1
Parent(s):
25ba1ba
Changing how the audio_id is gotten
Browse files- samromur_milljon.py +2 -1
samromur_milljon.py
CHANGED
@@ -214,7 +214,8 @@ class SamromurMilljon(datasets.GeneratorBasedBuilder):
|
|
214 |
|
215 |
for audio_archive, local_extracted_archive_path in zip(audio_archives, local_extracted_archives_paths):
|
216 |
for audio_filename, audio_file in audio_archive:
|
217 |
-
audio_id = audio_filename.split(os.sep)[-1].split(_AUDIO_EXTENSIONS)[0]
|
|
|
218 |
path = os.path.join(local_extracted_archive_path, audio_filename) if local_extracted_archive_path else audio_filename
|
219 |
|
220 |
yield audio_id, {
|
|
|
214 |
|
215 |
for audio_archive, local_extracted_archive_path in zip(audio_archives, local_extracted_archives_paths):
|
216 |
for audio_filename, audio_file in audio_archive:
|
217 |
+
#audio_id = audio_filename.split(os.sep)[-1].split(_AUDIO_EXTENSIONS)[0]
|
218 |
+
audio_id =os.path.splitext(os.path.basename(audio_filename))[0]
|
219 |
path = os.path.join(local_extracted_archive_path, audio_filename) if local_extracted_archive_path else audio_filename
|
220 |
|
221 |
yield audio_id, {
|