Update README.md
Browse files
README.md
CHANGED
@@ -42,8 +42,8 @@ from datasets import load_dataset
|
|
42 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
43 |
|
44 |
test_dataset = load_dataset("common_voice", "fr")
|
45 |
-
processor = Wav2Vec2Processor.from_pretrained("Nhut/wav2vec2-large-xlsr-
|
46 |
-
model = Wav2Vec2ForCTC.from_pretrained("Nhut/wav2vec2-large-xlsr-
|
47 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
48 |
|
49 |
# Preprocessing the datasets.
|
@@ -79,8 +79,8 @@ import re
|
|
79 |
|
80 |
test_dataset = load_dataset("common_voice", "fr")
|
81 |
wer = load_metric("wer")
|
82 |
-
processor = Wav2Vec2Processor.from_pretrained("Nhut/wav2vec2-large-xlsr-
|
83 |
-
model = Wav2Vec2ForCTC.from_pretrained("Nhut/wav2vec2-large-xlsr-
|
84 |
model.to("cuda")
|
85 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\%\‘\â€\�]'
|
86 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
|
|
42 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
43 |
|
44 |
test_dataset = load_dataset("common_voice", "fr")
|
45 |
+
processor = Wav2Vec2Processor.from_pretrained("Nhut/wav2vec2-large-xlsr-french")
|
46 |
+
model = Wav2Vec2ForCTC.from_pretrained("Nhut/wav2vec2-large-xlsr-french")
|
47 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
48 |
|
49 |
# Preprocessing the datasets.
|
|
|
79 |
|
80 |
test_dataset = load_dataset("common_voice", "fr")
|
81 |
wer = load_metric("wer")
|
82 |
+
processor = Wav2Vec2Processor.from_pretrained("Nhut/wav2vec2-large-xlsr-french")
|
83 |
+
model = Wav2Vec2ForCTC.from_pretrained("Nhut/wav2vec2-large-xlsr-french")
|
84 |
model.to("cuda")
|
85 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\%\‘\â€\�]'
|
86 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|