Automatic Speech Recognition
Transformers
Safetensors
Northern Kurdish
wav2vec2-bert
kurdish
badini
kurmanji
low-resource
Instructions to use computeram/badini-w2v-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use computeram/badini-w2v-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="computeram/badini-w2v-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForCTC processor = AutoProcessor.from_pretrained("computeram/badini-w2v-bert") model = AutoModelForCTC.from_pretrained("computeram/badini-w2v-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
melhum commited on
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -22,11 +22,11 @@ model-index:
|
|
| 22 |
type: automatic-speech-recognition
|
| 23 |
metrics:
|
| 24 |
- type: wer
|
| 25 |
-
value:
|
| 26 |
-
name: WER
|
| 27 |
- type: cer
|
| 28 |
-
value:
|
| 29 |
-
name: CER
|
| 30 |
---
|
| 31 |
|
| 32 |
# Badini Kurdish ASR (Wav2Vec2-BERT)
|
|
@@ -38,17 +38,24 @@ with a CTC head.
|
|
| 38 |
|
| 39 |
## Results
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
|
| 44 |
-
|--------|--------|
|
| 45 |
-
|
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
## Input requirements
|
| 49 |
|
| 50 |
- Audio must be **16 kHz, mono**.
|
| 51 |
-
- Resample any other sample rate to 16 kHz before
|
| 52 |
|
| 53 |
## Usage
|
| 54 |
|
|
@@ -70,14 +77,14 @@ print(processor.batch_decode(pred_ids)[0])
|
|
| 70 |
|
| 71 |
## Important: text normalization
|
| 72 |
|
| 73 |
-
This repository contains **only the acoustic model**.
|
| 74 |
-
decoding.
|
| 75 |
-
number-to-word expansion (
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
|
| 80 |
## Intended use
|
| 81 |
|
| 82 |
-
Speech transcription for Badini Kurdish
|
| 83 |
-
|
|
|
|
| 22 |
type: automatic-speech-recognition
|
| 23 |
metrics:
|
| 24 |
- type: wer
|
| 25 |
+
value: 26.53
|
| 26 |
+
name: WER (normalized, word-level)
|
| 27 |
- type: cer
|
| 28 |
+
value: 11.32
|
| 29 |
+
name: CER (normalized, word-level)
|
| 30 |
---
|
| 31 |
|
| 32 |
# Badini Kurdish ASR (Wav2Vec2-BERT)
|
|
|
|
| 38 |
|
| 39 |
## Results
|
| 40 |
|
| 41 |
+
The raw model output (greedy CTC, no post-processing) and the output after the
|
| 42 |
+
project's text-normalization pipeline are reported separately, because word error
|
| 43 |
+
rate is highly sensitive to punctuation, digit spelling, and character variants
|
| 44 |
+
that the normalizer resolves.
|
| 45 |
|
| 46 |
+
| Evaluation | WER | CER |
|
| 47 |
+
|------------|-----|-----|
|
| 48 |
+
| Raw greedy CTC (no normalization) | 46.5% | 12.0% |
|
| 49 |
+
| Normalized, punctuation stripped (word-level) | **26.5%** | 11.3% |
|
| 50 |
+
| Normalized, punctuation kept | 32.4% | 14.2% |
|
| 51 |
+
|
| 52 |
+
Normalized results are on a 1,123-sample test set; the raw figure is from the
|
| 53 |
+
training-time evaluation on 2,038 samples.
|
| 54 |
|
| 55 |
## Input requirements
|
| 56 |
|
| 57 |
- Audio must be **16 kHz, mono**.
|
| 58 |
+
- Resample any other sample rate to 16 kHz before inference.
|
| 59 |
|
| 60 |
## Usage
|
| 61 |
|
|
|
|
| 77 |
|
| 78 |
## Important: text normalization
|
| 79 |
|
| 80 |
+
This repository contains **only the acoustic model**. Raw output is plain CTC
|
| 81 |
+
decoding. The normalization pipeline that produces the 26.5% WER — punctuation
|
| 82 |
+
handling, number-to-word expansion (Badini-specific), character normalization,
|
| 83 |
+
and word-variant correction — is applied downstream and is **not** included here.
|
| 84 |
+
Output straight from this model will match the "raw" row above, not the normalized
|
| 85 |
+
rows.
|
| 86 |
|
| 87 |
## Intended use
|
| 88 |
|
| 89 |
+
Speech transcription for Badini Kurdish, best used together with the downstream
|
| 90 |
+
normalization/post-processing described above.
|