MatBar99 commited on
Commit
ac05f83
·
verified ·
1 Parent(s): 8da42db

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -1
README.md CHANGED
@@ -192,10 +192,12 @@ In addition, reference transcripts provided by Earnings22 were manually revalida
192
 
193
  ## Dataset Description
194
 
195
- HALAS consists of human-annotated hallucinations occurring in ASR transcriptions generated from recordings in the Earnings22 dataset:
196
 
197
  https://huggingface.co/datasets/distil-whisper/earnings22
198
 
 
 
199
  The dataset was created using outputs from state-of-the-art ASR systems applied to naturally occurring earnings-call recordings containing speakers from 27 countries and a wide range of recording conditions.
200
 
201
  To maximize the prevalence of hallucinations in the annotation pool, candidate audio segments were selected using **inter-model disagreement**. Predictions from multiple ASR systems were compared using average pairwise Word Error Rate (WER), and segments with the highest disagreement were prioritized for annotation.
@@ -267,6 +269,7 @@ https://creativecommons.org/licenses/by-sa/4.0/
267
  HALAS contains original human annotations produced by the authors. Unless otherwise specified in the official repository, these annotations are intended to be distributed under the same license as the source dataset for compatibility with the underlying Earnings22 data.
268
 
269
  **Note:** Users should consult the official HALAS repository for the authoritative licensing terms of the released version.
 
270
  ---
271
 
272
  ## Dataset Sources
@@ -388,6 +391,48 @@ The source recordings originate from the Earnings22 dataset:
388
 
389
  Candidate segments were selected from portions exhibiting high disagreement between ASR systems.
390
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
391
  ---
392
 
393
  ## Bias, Risks, and Limitations
 
192
 
193
  ## Dataset Description
194
 
195
+ HALAS consists of human-annotated hallucinations occurring in ASR transcriptions generated from recordings in the Earnings22 dataset.
196
 
197
  https://huggingface.co/datasets/distil-whisper/earnings22
198
 
199
+
200
+
201
  The dataset was created using outputs from state-of-the-art ASR systems applied to naturally occurring earnings-call recordings containing speakers from 27 countries and a wide range of recording conditions.
202
 
203
  To maximize the prevalence of hallucinations in the annotation pool, candidate audio segments were selected using **inter-model disagreement**. Predictions from multiple ASR systems were compared using average pairwise Word Error Rate (WER), and segments with the highest disagreement were prioritized for annotation.
 
269
  HALAS contains original human annotations produced by the authors. Unless otherwise specified in the official repository, these annotations are intended to be distributed under the same license as the source dataset for compatibility with the underlying Earnings22 data.
270
 
271
  **Note:** Users should consult the official HALAS repository for the authoritative licensing terms of the released version.
272
+
273
  ---
274
 
275
  ## Dataset Sources
 
391
 
392
  Candidate segments were selected from portions exhibiting high disagreement between ASR systems.
393
 
394
+ Audio files can be downloaded using following script:
395
+
396
+ ```
397
+ import csv
398
+ from datasets import load_dataset
399
+ import soundfile as sf
400
+ import os
401
+
402
+ # Load dataset
403
+ filtered_dataset = load_dataset("distil-whisper/earnings22", 'chunked', split='test')
404
+
405
+ # Create output directory
406
+ output_dir = "e22"
407
+ os.makedirs(output_dir, exist_ok=True)
408
+
409
+ # CSV file setup
410
+ csv_file = os.path.join(output_dir, "metadata.csv")
411
+
412
+ with open(csv_file, mode='w', newline='', encoding='utf-8') as file:
413
+ writer = csv.writer(file)
414
+ writer.writerow(["filepath", "text"]) # Write header
415
+
416
+ for audio in filtered_dataset:
417
+ seg_id = audio["segment_id"]
418
+ audio_array = audio["audio"]["array"]
419
+ sample_rate = audio["audio"]["sampling_rate"]
420
+ name = audio["file_id"]
421
+ name = "_".join([seg_id, name])
422
+ file_path = os.path.join(output_dir, name + ".wav")
423
+ text = audio['transcription']
424
+
425
+ # Save audio file
426
+ sf.write(file_path, audio_array, sample_rate)
427
+
428
+ # Write metadata to CSV
429
+ writer.writerow([file_path, text])
430
+ print(f"Saved: {file_path}")
431
+
432
+ print("All files and metadata saved successfully.")
433
+
434
+ ```
435
+
436
  ---
437
 
438
  ## Bias, Risks, and Limitations