SaraSadeghi commited on
Commit
876dff9
1 Parent(s): aab5371

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -12
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  language: fa
3
  datasets:
4
- - common_voice_9_0
5
  tags:
6
  - audio
7
  - automatic-speech-recognition
@@ -18,8 +18,8 @@ model-index:
18
  name: Automatic Speech Recognition
19
  type: automatic-speech-recognition
20
  dataset:
21
- name: Common Voice Corpus 9.0 (clean)
22
- type: common_voice_9_0
23
  config: clean
24
  split: test
25
  args:
@@ -48,23 +48,23 @@ model-index:
48
 
49
  [Sharif-wav2vec2](https://huggingface.co/SLPL/Sharif-wav2vec2/)
50
 
51
- The base model fine-tuned on 960 hours of Librispeech on 16kHz sampled speech audio. When using the model
52
  make sure that your speech input is also sampled at 16Khz.
53
 
54
- [Paper](https://arxiv.org/abs/2006.11477)
55
 
56
- Authors: Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli
57
 
58
- **Abstract**
59
 
60
- We show for the first time that learning powerful representations from speech audio alone followed by fine-tuning on transcribed speech can outperform the best semi-supervised methods while being conceptually simpler. wav2vec 2.0 masks the speech input in the latent space and solves a contrastive task defined over a quantization of the latent representations which are jointly learned. Experiments using all labeled data of Librispeech achieve 1.8/3.3 WER on the clean/other test sets. When lowering the amount of labeled data to one hour, wav2vec 2.0 outperforms the previous state of the art on the 100 hour subset while using 100 times less labeled data. Using just ten minutes of labeled data and pre-training on 53k hours of unlabeled data still achieves 4.8/8.2 WER. This demonstrates the feasibility of speech recognition with limited amounts of labeled data.
61
 
62
  The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20.
63
 
64
 
65
  # Usage
66
 
67
- To transcribe audio files the model can be used as a standalone acoustic model as follows:
68
 
69
  ```python
70
  from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
@@ -72,11 +72,11 @@ To transcribe audio files the model can be used as a standalone acoustic model a
72
  import torch
73
 
74
  # load model and tokenizer
75
- processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
76
- model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h")
77
 
78
  # load dummy dataset and read soundfiles
79
- ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
80
 
81
  # tokenize
82
  input_values = processor(ds[0]["audio"]["array"], return_tensors="pt", padding="longest").input_values # Batch size 1
 
1
  ---
2
  language: fa
3
  datasets:
4
+ - common_voice_6_1
5
  tags:
6
  - audio
7
  - automatic-speech-recognition
 
18
  name: Automatic Speech Recognition
19
  type: automatic-speech-recognition
20
  dataset:
21
+ name: Common Voice Corpus 6.1 (clean)
22
+ type: common_voice_6_1
23
  config: clean
24
  split: test
25
  args:
 
48
 
49
  [Sharif-wav2vec2](https://huggingface.co/SLPL/Sharif-wav2vec2/)
50
 
51
+ The base model fine-tuned on 108 hours of Commonvoice on 16kHz sampled speech audio. When using the model
52
  make sure that your speech input is also sampled at 16Khz.
53
 
54
+ #[Paper](https://arxiv.org/abs/2006.11477)
55
 
56
+ #Authors: Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli
57
 
58
+ #**Abstract**
59
 
60
+ #We show for the first time that learning powerful representations from speech audio alone followed by fine-tuning on transcribed speech can #outperform the best semi-supervised methods while being conceptually simpler. wav2vec 2.0 masks the speech input in the latent space and #solves a contrastive task defined over a quantization of the latent representations which are jointly learned. Experiments using all #labeled data of Librispeech achieve 1.8/3.3 WER on the clean/other test sets. When lowering the amount of labeled data to one hour, wav2vec #2.0 outperforms the previous state of the art on the 100 hour subset while using 100 times less labeled data. Using just ten minutes of #labeled data and pre-training on 53k hours of unlabeled data still achieves 4.8/8.2 WER. This demonstrates the feasibility of speech #recognition with limited amounts of labeled data.
61
 
62
  The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20.
63
 
64
 
65
  # Usage
66
 
67
+ To transcribe Persian audio files the model can be used as a standalone acoustic model as follows:
68
 
69
  ```python
70
  from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
 
72
  import torch
73
 
74
  # load model and tokenizer
75
+ processor = Wav2Vec2Processor.from_pretrained("SLPL/Sharif-wav2vec2")
76
+ model = Wav2Vec2ForCTC.from_pretrained("SLPL/Sharif-wav2vec2")
77
 
78
  # load dummy dataset and read soundfiles
79
+ # ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
80
 
81
  # tokenize
82
  input_values = processor(ds[0]["audio"]["array"], return_tensors="pt", padding="longest").input_values # Batch size 1