Initial commit
Browse files
README.md
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: lt
|
3 |
+
datasets:
|
4 |
+
- common_voice
|
5 |
+
metrics:
|
6 |
+
- wer
|
7 |
+
tags:
|
8 |
+
- audio
|
9 |
+
- automatic-speech-recognition
|
10 |
+
- speech
|
11 |
+
license: apache-2.0
|
12 |
+
model-index:
|
13 |
+
- name: XLSR Wav2Vec2 Lithuanian by Seçilay KUTAL
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Speech Recognition
|
17 |
+
type: automatic-speech-recognition
|
18 |
+
dataset:
|
19 |
+
name: Common Voice lt
|
20 |
+
type: common_voice
|
21 |
+
args: lt
|
22 |
+
metrics:
|
23 |
+
- name: Test WER
|
24 |
+
type: wer
|
25 |
+
|
26 |
+
---
|
27 |
+
# wav2vec_Lithuanian2Turkish
|
28 |
+
## Usage
|
29 |
+
The model can be used directly (without a language model) as follows:
|
30 |
+
```python
|
31 |
+
import torch
|
32 |
+
import torchaudio
|
33 |
+
from datasets import load_dataset
|
34 |
+
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
35 |
+
test_dataset = load_dataset("common_voice", "lt", split="test[:2%]")
|
36 |
+
processor = Wav2Vec2Processor.from_pretrained("seccily/wav2vec-lt-lite")
|
37 |
+
model = Wav2Vec2ForCTC.from_pretrained("seccily/wav2vec-lt-lite")
|
38 |
+
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
39 |
+
```
|
40 |
+
Test Result: 59.47
|