Dataset loader for AMI Meeting Corpus. The AMI corpus consists of 100 hours of meeting recordings captured using multiple microphones. This loader supports both Individual Headset Microphone (IHM) and Single Distant Microphone (SDM) conditions. Dataset Structure: - Text fil
| 491 | |
| 492 | |
| 493 | class AMILoader(BaseDatasetLoader): |
| 494 | """Dataset loader for AMI Meeting Corpus. |
| 495 | |
| 496 | The AMI corpus consists of 100 hours of meeting recordings captured using |
| 497 | multiple microphones. This loader supports both Individual Headset Microphone (IHM) |
| 498 | and Single Distant Microphone (SDM) conditions. |
| 499 | |
| 500 | Dataset Structure: |
| 501 | - Text file with utterance IDs and transcripts |
| 502 | - Audio files organized by meeting session |
| 503 | - Multiple microphone configurations available |
| 504 | |
| 505 | Returns: |
| 506 | Tuple of audio file paths and corresponding transcript texts |
| 507 | |
| 508 | Reference: |
| 509 | Carletta, J., et al. "The AMI Meeting Corpus: A Pre-announcement." |
| 510 | """ |
| 511 | |
| 512 | def load(self) -> Tuple[list, list]: |
| 513 | """Load AMI corpus audio files and transcripts. |
| 514 | |
| 515 | Parses the text file to extract utterance IDs and maps them to |
| 516 | corresponding audio files in the evaluation subset. |
| 517 | |
| 518 | Returns: |
| 519 | Tuple[list, list]: A tuple containing: |
| 520 | - List of audio file paths (WAV format) |
| 521 | - List of corresponding transcript strings |
| 522 | """ |
| 523 | with open(f"{self.root_dir}/text", "r") as f: |
| 524 | file_text = [line.split(" ", 1) for line in f] |
| 525 | audio_files, transcript_texts = zip(*file_text) |
| 526 | audio_files = [ |
| 527 | f"{self.root_dir}/{f.split('_')[1]}/eval_{f.lower()}.wav" |
| 528 | for f in audio_files |
| 529 | ] |
| 530 | return list(audio_files), list(transcript_texts) |
| 531 | |
| 532 | |
| 533 | class CORAALLoader(BaseDatasetLoader): |
nothing calls this directly
no outgoing calls
no test coverage detected