This project aims to improve Automatic Speech Recognition (ASR) output using a Bidirectional Auto-Regressive Transformer (BART) for error correction. Inspired by Samrat Dutta's work on "Error Correction in ASR using Sequence-to-Sequence Models" [1], the approach involves fine-tuning BART with a custom dataset created by simulating errors in ASR predictions.
This work builds upon the Hugging Face documentation here and the fine-tuning example by Patrick von Platen here
This notebook provides a comprehensive overview of the fine-tuning process for BART, transforming it into a powerful post-editing tool for ASR errors. The custom dataset creation involves simulating errors in ASR predictions, leveraging a pre-existing ASR dataset.
- Load Timit dataset using datasets library.
- Preprocess the dataset, preparing input values and labels.
- Use Wav2Vec2 to predict and simulate errors.
- Compute metrics and export results to a CSV file for BART fine-tuning.
- Tokenize the dataset using BART tokenizer.
- Create PyTorch dataset and dataloaders.
- Initialize BART model and set hyperparameters.
- Hyperparameters selection
- Test the model and calculate Word Error Rate (WER).
[1] Samrat Dutta, Shreyansh Jain, Ayush Maheshwari, Souvik Pal, Ganesh Ramakrishnan, and Preethi Jyothi. Error correction in ASR using sequence-to-sequence models. 2022.

