Update README.md
Browse files
README.md
CHANGED
@@ -82,12 +82,12 @@ import re
|
|
82 |
test_dataset = load_dataset("common_voice", "tr", split="test")
|
83 |
wer = load_metric("wer")
|
84 |
|
85 |
-
processor = Wav2Vec2Processor.from_pretrained("ceyda/wav2vec2-large-xlsr-turkish")
|
86 |
-
model = Wav2Vec2ForCTC.from_pretrained("ceyda/wav2vec2-large-xlsr-turkish")
|
87 |
model.to("cuda")
|
88 |
|
89 |
-
# chars_to_ignore_regex = '[
|
90 |
-
chars_to_ignore_regex = '[
|
91 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
92 |
|
93 |
# Preprocessing the datasets.
|
|
|
82 |
test_dataset = load_dataset("common_voice", "tr", split="test")
|
83 |
wer = load_metric("wer")
|
84 |
|
85 |
+
processor = Wav2Vec2Processor.from_pretrained("ceyda/wav2vec2-large-xlsr-53-turkish")
|
86 |
+
model = Wav2Vec2ForCTC.from_pretrained("ceyda/wav2vec2-large-xlsr-53-turkish")
|
87 |
model.to("cuda")
|
88 |
|
89 |
+
# chars_to_ignore_regex = '[\\\\,\\\\?\\\\.\\\\!\\\\-\\\\;\\\\:\\\\"\\\\“]'
|
90 |
+
chars_to_ignore_regex = '[\\\\,\\\\?\\\\.\\\\!\\\\-\\\\;\\\\:\\\\"\\\\“\\\\%\\\\‘\\\\”\\\\�\\\\'\\\\`]'
|
91 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
92 |
|
93 |
# Preprocessing the datasets.
|