import datasets class LuxembourgPressConferencesGov(datasets.GeneratorBasedBuilder): def _info(self): return datasets.DatasetInfo( features=datasets.Features( { "file_name": datasets.Audio(sampling_rate=16000), "transcription": datasets.Value("string"), } ), ) def _split_generators(self, dl_manager): return [ datasets.SplitGenerator( name=datasets.Split.TEST, gen_kwargs={"filepath": "metadata.jsonl"}, ), ] def _generate_examples(self, filepath): with open(filepath, "r", encoding="utf-8") as f: for idx, line in enumerate(f): data = json.loads(line) yield idx, { "file_name": data["file_name"], "transcription": data["transcription"], }