Views
No views yet
1# Use a pipeline as a high-level helper
2from transformers import pipeline
3
4pipe = pipeline("automatic-speech-recognition", model="seba3y/speecht5-asr-punctuation-sensitive")1# Load model directly
2from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
3
4processor = AutoProcessor.from_pretrained("seba3y/speecht5-asr-punctuation-sensitive")
5model = AutoModelForSpeechSeq2Seq.from_pretrained("seba3y/speecht5-asr-punctuation-sensitive")| Paramter | Value |
|---|---|
| per_device_train_batch_size | 6 |
| per_device_eval_batch_size | 16 |
| gradient_accumulation_steps | 12 |
| eval_accumulation_steps | 16 |
| dataloader_num_workers | 2 |
| learning_rate | 5e-5 |
| adafactor | True |
| weight_decay | 0.08989525 |
| max_grad_norm | 0.58585 |
| num_train_epochs | 5 |
| warmup_ratio | 0.7 |
| lr_scheduler_type | constant_with_warmup |
| fp16 | True |
| gradient_checkpointing | True |
| sortish_sampler | True |
| Split | Word Error Rate (%) |
|---|---|
| dev | 44.8 |
| tst-HE | 39.1 |
| tst-COMMON | 43.2 |
@InProceedings{mustc19, author = "Di Gangi, Mattia Antonino and Cattoni, Roldano and Bentivogli, Luisa and Negri, Matteo > and Turchi, Marco",
title = "{MuST-C: a Multilingual Speech Translation Corpus}",
booktitle = "Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies,
Volume 2 (Short Papers)", year = "2019", address = "Minneapolis, MN, USA", month = "June"}}@inproceedings{ao-etal-2022-speecht5,
title = {{S}peech{T}5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing},
author = {Ao, Junyi and Wang, Rui and Zhou, Long and Wang, Chengyi and Ren, Shuo and Wu, Yu and Liu, Shujie and Ko, Tom and Li, Qing and Zhang, Yu and Wei, Zhihua and Qian, Yao and Li, Jinyu and Wei, Furu},
booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
month = {May},
year = {2022},
pages={5723--5738},
}