Hindi Disfluency Restoration
Whisper Small fine-tuned inside Kaggle on 720 competition fitting examples
for 45 optimizer updates. No additional external training data were used.
Initialization: vasista22/whisper-hindi-small.
Processor: openai/whisper-small.
The complete method takes Hindi audio and the supplied clean transcript. Raw speech recognition alone
is not the final answer. Apply restoration.py with restoration_settings.json to preserve the clean
words and insert supported listed fillers. The chosen policy is complete_audio. Empty clean inputs
use complete filler-only audio when available, otherwise a fallback learned from the fitting split.
Development WER: 5.648% on 180 validation examples,
using raw whitespace tokens. The policy was selected on this same split; this is not an independent
test score or a Kaggle score. Some predictions still regress. The model was not retrained on all 900 rows.
Load WhisperForConditionalGeneration, WhisperTokenizer, WhisperFeatureExtractor, and GenerationConfig
from this repository at one fixed commit. Use the settings in environment.json, Hindi transcription,
FP32 greedy decoding, full sequence output, and the saved generation configuration. Resample actual
mono waveforms to 16 kHz with scipy.signal.resample_poly. Do not silently truncate recordings beyond
30 seconds. Tokenizer decoding must use skip_special_tokens=True and clean_up_tokenization_spaces=False.
Check EOS after the Hindi/task prefix, and pass prediction, finished_with_eos, and length_limit to
restore_text(clean_text, audio_result, settings). The helper does not itself read audio or call a model.
Inference runs locally in Kaggle. No hosted prediction API is needed. The package contains no original
recordings, training/validation tables, prediction caches, optimizer checkpoints, or account token.
Model initialization and processor provenance are recorded in NOTICE and environment.json.