Commit
·
177ebd7
1
Parent(s):
64fb33b
Update README.md
Browse files
README.md
CHANGED
|
@@ -83,9 +83,12 @@ For the evaluation, you can use the code below. Ensure your dataset to be in fol
|
|
| 83 |
|:----:|:--------:|
|
| 84 |
| path/to/audio_file.wav | "TRANSCRIPTION" |
|
| 85 |
|
|
|
|
|
|
|
| 86 |
```python
|
| 87 |
-
import
|
| 88 |
import torchaudio
|
|
|
|
| 89 |
import librosa
|
| 90 |
from datasets import load_dataset,load_metric
|
| 91 |
import numpy as np
|
|
@@ -129,11 +132,11 @@ print("WER: {:.2f}".format(100 * wer.compute(predictions=result["prediction"], r
|
|
| 129 |
print("CER: {:.2f}".format(100 * cer.compute(predictions=result["prediction"], references=result["reference"])))
|
| 130 |
```
|
| 131 |
|
| 132 |
-
*Result (WER)*:
|
| 133 |
|
| 134 |
-
|
|
| 135 |
-
|
| 136 |
-
|
|
| 137 |
|
| 138 |
|
| 139 |
## Citation
|
|
|
|
| 83 |
|:----:|:--------:|
|
| 84 |
| path/to/audio_file.wav | "TRANSCRIPTION" |
|
| 85 |
|
| 86 |
+
also, make sure you have installed `pip install jiwer` prior to running.
|
| 87 |
+
|
| 88 |
```python
|
| 89 |
+
import tensorflow
|
| 90 |
import torchaudio
|
| 91 |
+
import torch
|
| 92 |
import librosa
|
| 93 |
from datasets import load_dataset,load_metric
|
| 94 |
import numpy as np
|
|
|
|
| 132 |
print("CER: {:.2f}".format(100 * cer.compute(predictions=result["prediction"], references=result["reference"])))
|
| 133 |
```
|
| 134 |
|
| 135 |
+
*Result (WER) on common-voice 6.1*:
|
| 136 |
|
| 137 |
+
| cleaned | other |
|
| 138 |
+
|:---:|:---:|
|
| 139 |
+
| 0.06 | 0.16 |
|
| 140 |
|
| 141 |
|
| 142 |
## Citation
|