patrickvonplaten
commited on
Commit
·
32c3cca
1
Parent(s):
f2e5f68
Update README.md
Browse files
README.md
CHANGED
@@ -66,7 +66,7 @@ print("Reference:", test_dataset["sentence"][:2])
|
|
66 |
|
67 |
Evaluation
|
68 |
The model can be evaluated as follows on the Welsh test data of Common Voice.
|
69 |
-
```
|
70 |
import torch
|
71 |
import torchaudio
|
72 |
from datasets import load_dataset, load_metric
|
@@ -82,7 +82,7 @@ model = Wav2Vec2ForCTC.from_pretrained("Srulikbdd/Wav2vec2-large-xlsr-welsh")
|
|
82 |
|
83 |
model.to("cuda")
|
84 |
|
85 |
-
chars_to_ignore_regex = '[
|
86 |
|
87 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
88 |
|
|
|
66 |
|
67 |
Evaluation
|
68 |
The model can be evaluated as follows on the Welsh test data of Common Voice.
|
69 |
+
```python
|
70 |
import torch
|
71 |
import torchaudio
|
72 |
from datasets import load_dataset, load_metric
|
|
|
82 |
|
83 |
model.to("cuda")
|
84 |
|
85 |
+
chars_to_ignore_regex = '[\\\\\\\\\\\\\\\\,\\\\\\\\\\\\\\\\?\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\!\\\\\\\\\\\\\\\\-\\\\\\\\\\\\\\\\u2013\\\\\\\\\\\\\\\\u2014\\\\\\\\\\\\\\\\;\\\\\\\\\\\\\\\\:\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\%\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\]'
|
86 |
|
87 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
88 |
|