Update README.md
Browse files
README.md
CHANGED
@@ -22,6 +22,13 @@ should probably proofread and complete it, then remove this comment. -->
|
|
22 |
This model is a fine-tuned version of [facebook/w2v-bert-2.0](https://huggingface.co/facebook/w2v-bert-2.0) on the OpenSLR 42 dataset.
|
23 |
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
## Training and evaluation data
|
26 |
|
27 |
Eval with 10% of OpenSLR seed: 42
|
|
|
22 |
This model is a fine-tuned version of [facebook/w2v-bert-2.0](https://huggingface.co/facebook/w2v-bert-2.0) on the OpenSLR 42 dataset.
|
23 |
|
24 |
|
25 |
+
```python
|
26 |
+
from transformers import pipeline
|
27 |
+
recognizer = pipeline("automatic-speech-recognition", model="seanghay/w2v-bert-2.0-khmer", device="cuda")
|
28 |
+
text = recognizer("audio.mp3", chunk_length_s=10, stride_length_s=(4, 2))["text"]
|
29 |
+
```
|
30 |
+
|
31 |
+
|
32 |
## Training and evaluation data
|
33 |
|
34 |
Eval with 10% of OpenSLR seed: 42
|