Automatic Speech Recognition
Transformers
PyTorch
Chinese
wav2vec2
audio
speech
xlsr-fine-tuning-week
Instructions to use gymeee/demo_code_switching with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gymeee/demo_code_switching with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="gymeee/demo_code_switching")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForCTC processor = AutoProcessor.from_pretrained("gymeee/demo_code_switching") model = AutoModelForCTC.from_pretrained("gymeee/demo_code_switching", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from gymeee/demo_code_switching: direct link, hf CLI and curl.
- Browser
- Download file 96 Bytes
-
https://huggingface.co/gymeee/demo_code_switching/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://gymeee/demo_code_switching/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/gymeee/demo_code_switching/resolve/main/special_tokens_map.json
96 Bytes
| { | |
| "bos_token": "<s>", | |
| "eos_token": "</s>", | |
| "pad_token": "<pad>", | |
| "unk_token": "[UNK]" | |
| } | |