patrickvonplaten
commited on
Commit
•
091289d
1
Parent(s):
c89db03
Update README.md
Browse files
README.md
CHANGED
@@ -17,7 +17,7 @@ model-index:
|
|
17 |
dataset:
|
18 |
name: Common Voice hsb
|
19 |
type: common_voice
|
20 |
-
args:
|
21 |
metrics:
|
22 |
- name: Test WER
|
23 |
type: wer
|
@@ -77,7 +77,7 @@ wer = load_metric("wer")
|
|
77 |
processor = Wav2Vec2Processor.from_pretrained("jimregan/wav2vec2-large-xlsr-upper-sorbian-mixed")
|
78 |
model = Wav2Vec2ForCTC.from_pretrained("jimregan/wav2vec2-large-xlsr-upper-sorbian-mixed")
|
79 |
model.to("cuda")
|
80 |
-
chars_to_ignore_regex = '[
|
81 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
82 |
# Preprocessing the datasets.
|
83 |
# We need to read the audio files as arrays
|
|
|
17 |
dataset:
|
18 |
name: Common Voice hsb
|
19 |
type: common_voice
|
20 |
+
args: hsb
|
21 |
metrics:
|
22 |
- name: Test WER
|
23 |
type: wer
|
|
|
77 |
processor = Wav2Vec2Processor.from_pretrained("jimregan/wav2vec2-large-xlsr-upper-sorbian-mixed")
|
78 |
model = Wav2Vec2ForCTC.from_pretrained("jimregan/wav2vec2-large-xlsr-upper-sorbian-mixed")
|
79 |
model.to("cuda")
|
80 |
+
chars_to_ignore_regex = '[\\\\\\\\\\\\\\\\,\\\\\\\\\\\\\\\\?\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\!\\\\\\\\\\\\\\\\-\\\\\\\\\\\\\\\\;\\\\\\\\\\\\\\\\:\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\“\\\\\\\\\\\\\\\\%\\\\\\\\\\\\\\\\‘\\\\\\\\\\\\\\\\”\\\\\\\\\\\\\\\\�„«»–]'
|
81 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
82 |
# Preprocessing the datasets.
|
83 |
# We need to read the audio files as arrays
|