Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ tags:
|
|
9 |
- xlsr-fine-tuning-week
|
10 |
license: apache-2.0
|
11 |
model-index:
|
12 |
-
- name: XLSR Wav2Vec2 Swedish by
|
13 |
results:
|
14 |
- task:
|
15 |
name: Speech Recognition
|
@@ -41,8 +41,8 @@ from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
|
41 |
|
42 |
test_dataset = load_dataset("common_voice", "sv-SE", split="test[:2%]").
|
43 |
|
44 |
-
processor = Wav2Vec2Processor.from_pretrained("
|
45 |
-
model = Wav2Vec2ForCTC.from_pretrained("
|
46 |
|
47 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
48 |
|
@@ -81,8 +81,8 @@ import re
|
|
81 |
test_dataset = load_dataset("common_voice", "sv-SE", split="test")
|
82 |
wer = load_metric("wer")
|
83 |
|
84 |
-
processor = Wav2Vec2Processor.from_pretrained("
|
85 |
-
model = Wav2Vec2ForCTC.from_pretrained("
|
86 |
model.to("cuda")
|
87 |
|
88 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]'
|
|
|
9 |
- xlsr-fine-tuning-week
|
10 |
license: apache-2.0
|
11 |
model-index:
|
12 |
+
- name: XLSR Wav2Vec2 Swedish by KBLab
|
13 |
results:
|
14 |
- task:
|
15 |
name: Speech Recognition
|
|
|
41 |
|
42 |
test_dataset = load_dataset("common_voice", "sv-SE", split="test[:2%]").
|
43 |
|
44 |
+
processor = Wav2Vec2Processor.from_pretrained("KBLab/wav2vec2-large-xlsr-53-swedish")
|
45 |
+
model = Wav2Vec2ForCTC.from_pretrained("KBLab/wav2vec2-large-xlsr-53-swedish")
|
46 |
|
47 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
48 |
|
|
|
81 |
test_dataset = load_dataset("common_voice", "sv-SE", split="test")
|
82 |
wer = load_metric("wer")
|
83 |
|
84 |
+
processor = Wav2Vec2Processor.from_pretrained("KBLab/wav2vec2-large-xlsr-53-swedish")
|
85 |
+
model = Wav2Vec2ForCTC.from_pretrained("KBLab/wav2vec2-large-xlsr-53-swedish")
|
86 |
model.to("cuda")
|
87 |
|
88 |
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]'
|