Fix backslashes and model2 to model1
Browse files
README.md
CHANGED
@@ -34,8 +34,8 @@ from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
|
34 |
lang = "br"
|
35 |
test_dataset = load_dataset("common_voice", lang, split="test[:2%]")
|
36 |
|
37 |
-
processor = Wav2Vec2Processor.from_pretrained("Marxav/wav2vec2-large-xlsr-53-
|
38 |
-
model = Wav2Vec2ForCTC.from_pretrained("Marxav/wav2vec2-large-xlsr-53-
|
39 |
|
40 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
41 |
|
@@ -81,8 +81,8 @@ lang = 'br'
|
|
81 |
test_dataset = load_dataset("common_voice", lang, split="test")
|
82 |
wer = load_metric("wer")
|
83 |
|
84 |
-
processor = Wav2Vec2Processor.from_pretrained('Marxav/wav2vec2-large-xlsr-53-
|
85 |
-
model = Wav2Vec2ForCTC.from_pretrained('Marxav/wav2vec2-large-xlsr-53-
|
86 |
model.to("cuda")
|
87 |
|
88 |
chars_to_ignore_regex = '[\\,\,\?\.\!\;\:\"\“\%\”\�\(\)\/\«\»\½\…]'
|
|
|
34 |
lang = "br"
|
35 |
test_dataset = load_dataset("common_voice", lang, split="test[:2%]")
|
36 |
|
37 |
+
processor = Wav2Vec2Processor.from_pretrained("Marxav/wav2vec2-large-xlsr-53-breton")
|
38 |
+
model = Wav2Vec2ForCTC.from_pretrained("Marxav/wav2vec2-large-xlsr-53-breton")
|
39 |
|
40 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
41 |
|
|
|
81 |
test_dataset = load_dataset("common_voice", lang, split="test")
|
82 |
wer = load_metric("wer")
|
83 |
|
84 |
+
processor = Wav2Vec2Processor.from_pretrained('Marxav/wav2vec2-large-xlsr-53-breton')
|
85 |
+
model = Wav2Vec2ForCTC.from_pretrained('Marxav/wav2vec2-large-xlsr-53-breton')
|
86 |
model.to("cuda")
|
87 |
|
88 |
chars_to_ignore_regex = '[\\,\,\?\.\!\;\:\"\“\%\”\�\(\)\/\«\»\½\…]'
|