Update README.md
Browse files
README.md
CHANGED
@@ -64,7 +64,7 @@ wer = load_metric("wer")
|
|
64 |
processor = Wav2Vec2Processor.from_pretrained("manandey/wav2vec2-large-xlsr-_irish")
|
65 |
model = Wav2Vec2ForCTC.from_pretrained("manandey/wav2vec2-large-xlsr-_irish")
|
66 |
model.to("cuda")
|
67 |
-
chars_to_ignore_regex = '[
|
68 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
69 |
# Preprocessing the datasets.
|
70 |
# We need to read the aduio files as arrays
|
|
|
64 |
processor = Wav2Vec2Processor.from_pretrained("manandey/wav2vec2-large-xlsr-_irish")
|
65 |
model = Wav2Vec2ForCTC.from_pretrained("manandey/wav2vec2-large-xlsr-_irish")
|
66 |
model.to("cuda")
|
67 |
+
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\%\‘\”\�\’\–\(\)]'
|
68 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
69 |
# Preprocessing the datasets.
|
70 |
# We need to read the aduio files as arrays
|