Datasets:
patrickvonplaten
commited on
Commit
·
e93710f
1
Parent(s):
5cf3601
up
Browse files
ami.py
CHANGED
@@ -394,6 +394,11 @@ class AMI(datasets.GeneratorBasedBuilder):
|
|
394 |
features = ["meeting_id", "audio_id", "text", "begin_time", "end_time", "microphone_id", "speaker_id"]
|
395 |
for archive, local_archive_path in zip(audio_archives, local_extracted_archives_paths):
|
396 |
for audio_path, audio_file in archive:
|
|
|
|
|
|
|
|
|
|
|
397 |
# audio_path is like 'EN2001a/train_ami_en2001a_h00_mee068_0414915_0415078.wav'
|
398 |
audio_meta = transcriptions[audio_path.split("/")[-1]]
|
399 |
|
|
|
394 |
features = ["meeting_id", "audio_id", "text", "begin_time", "end_time", "microphone_id", "speaker_id"]
|
395 |
for archive, local_archive_path in zip(audio_archives, local_extracted_archives_paths):
|
396 |
for audio_path, audio_file in archive:
|
397 |
+
# adapt for sdm
|
398 |
+
if self.config.name == "sdm":
|
399 |
+
_audio_path_items = audio_path.split("_")
|
400 |
+
audio_path = "_".join(_audio_path_items[:3] + ["sdm"] + _audio_path_items[4:])
|
401 |
+
|
402 |
# audio_path is like 'EN2001a/train_ami_en2001a_h00_mee068_0414915_0415078.wav'
|
403 |
audio_meta = transcriptions[audio_path.split("/")[-1]]
|
404 |
|