Views
No views yet
| Metric | Baseline (Zero-Shot) | Fine-Tuned (Phase 1) | Net Improvement |
|---|---|---|---|
| CER (Character Error Rate) | 159.97% | 17.94% | -142.03% |
| WER (Word Error Rate) | 317.49% | 56.31% | -261.18% |
| Sentence Exact Match | 0.00% | 2.06% | +2.06% |
| Evaluation Loss | 3.3531 | 1.5270 | -1.8261 |
openai/whisper-small (244M parameters, 12 encoder layers, 12 decoder layers)<|my|>) with task='transcribe' and Unicode NFC normalization1import torch
2from transformers import pipeline
3
4# Load pipeline directly from HuggingFace
5pipe = pipeline(
6 "automatic-speech-recognition",
7 model="thantzinphyo/whisper-small-myanmar-phase1",
8 torch_dtype=torch.float16,
9 device="cuda:0" if torch.cuda.is_available() else "cpu"
10)
11
12# Transcribe Burmese audio (16kHz WAV)
13result = pipe("your_burmese_audio.wav", generate_kwargs={"language": "my", "task": "transcribe"})
14print("Transcription:", result["text"])