Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
punctuation
punctuation-restoration
asr
speech-recognition
transcription
mmbert
Instructions to use Horizon-Labs/punctuation-restoration-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Horizon-Labs/punctuation-restoration-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Horizon-Labs/punctuation-restoration-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Horizon-Labs/punctuation-restoration-small") model = AutoModelForTokenClassification.from_pretrained("Horizon-Labs/punctuation-restoration-small", device_map="auto") - Transformers.js
How to use Horizon-Labs/punctuation-restoration-small with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Horizon-Labs/punctuation-restoration-small'); - Notebooks
- Google Colab
- Kaggle
Ctrl+K
v1.1: + spoken-style transcripts; TED F1 .772 -> .786 cased, .688 -> .706 lowercased
ee31fdf verified