Fix character whitelist
Browse files
README.md
CHANGED
@@ -23,7 +23,7 @@ model-index:
|
|
23 |
metrics:
|
24 |
- name: Test WER
|
25 |
type: wer
|
26 |
-
value: 17.
|
27 |
---
|
28 |
|
29 |
# Wav2Vec2-Large-XLSR-53-Dutch
|
@@ -87,7 +87,7 @@ processor = Wav2Vec2Processor.from_pretrained("wietsedv/wav2vec2-large-xlsr-53-d
|
|
87 |
model = Wav2Vec2ForCTC.from_pretrained("wietsedv/wav2vec2-large-xlsr-53-dutch")
|
88 |
model.to("cuda")
|
89 |
|
90 |
-
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\β\%\β\β]'
|
91 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
92 |
|
93 |
# Preprocessing the datasets.
|
@@ -117,7 +117,7 @@ result = test_dataset.map(evaluate, batched=True, batch_size=8)
|
|
117 |
print("WER: {:.2f}".format(100 * wer.compute(predictions=result["pred_strings"], references=result["sentence"])))
|
118 |
```
|
119 |
|
120 |
-
**Test Result**: 17.
|
121 |
|
122 |
|
123 |
## Training
|
|
|
23 |
metrics:
|
24 |
- name: Test WER
|
25 |
type: wer
|
26 |
+
value: 17.09
|
27 |
---
|
28 |
|
29 |
# Wav2Vec2-Large-XLSR-53-Dutch
|
|
|
87 |
model = Wav2Vec2ForCTC.from_pretrained("wietsedv/wav2vec2-large-xlsr-53-dutch")
|
88 |
model.to("cuda")
|
89 |
|
90 |
+
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\'\β\%\β\β]'
|
91 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
92 |
|
93 |
# Preprocessing the datasets.
|
|
|
117 |
print("WER: {:.2f}".format(100 * wer.compute(predictions=result["pred_strings"], references=result["sentence"])))
|
118 |
```
|
119 |
|
120 |
+
**Test Result**: 17.09 %
|
121 |
|
122 |
|
123 |
## Training
|