Instructions to use ldenoue/punctuator-multilingual-minilm-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ldenoue/punctuator-multilingual-minilm-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ldenoue/punctuator-multilingual-minilm-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ldenoue/punctuator-multilingual-minilm-v2") model = AutoModelForTokenClassification.from_pretrained("ldenoue/punctuator-multilingual-minilm-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
punctuator-multilingual-minilm-v2
Non-generative multilingual punctuation and casing restoration model.
- Backbone: 12-layer, 384-wide multilingual MiniLM
- Vocabulary: 32,000-piece vocabulary pruned from the original XLM-R SentencePiece model
- Parameters: 33.78M
- Languages trained: en, de, fr, es, it, nl, pl, cs, sk, sl, ro, pt-BR, bg
- Training mode for this revision: balanced
- Data: ordered VoxPopuli speeches, reviewed OASST2 messages, FLEURS text, and capped creator-corrected YouTube caption spans
The model returns eight logits per token:
- indices 0โ4: NONE, COMMA, PERIOD, QUESTION, EXCLAMATION
- indices 5โ7: LOWER, CAP, UPPER
Select both predictions independently at the final subword of each input word. The model only changes casing and appends punctuation; it does not generate words.
Data licenses: VoxPopuli CC0; OASST2 Apache-2.0; FLEURS CC BY 4.0; YouTube Caption Corrections dataset card MIT. The latter contains public captions collected from YouTube, so review the underlying caption/platform rights before redistributing a resulting model.
See training_metrics.json, per_language_metrics.json, and per_source_metrics.json. Language inclusion does not establish production quality; evaluate against real output from the target ASR system.
- Downloads last month
- 46