Downloads · 30 days
2.5K
27% of all-time downloads
funasr/ct-punc
ct-punc is a text classification model from funasr. Use it when you need a label for a piece of text. It is set up for funasr. The card lists the license as apache-2.0.
Downloads · 30 days
2.5K
27% of all-time downloads
All-time downloads
9.5K
Public
Repo size
1.1 GB
Likes
13
Public
Click a slice to open those files.
.pt1.1 GB · 99%
From the Hugging Face model README
This model is part of the FunASR ecosystem — one industrial-grade open-source toolkit for ASR · VAD · punctuation · speaker diarization · emotion / event · LLM-ASR. A Star really helps the project (and keeps you updated):
🌟 FunASR · 🌟 SenseVoice · 🌟 Fun-ASR · 🌟 FunClip
</div>Punctuation Restoration — automatically add punctuation to ASR output text.
CT-Punc (Controllable Time-delay Punctuation) restores punctuation marks for unpunctuated text, commonly used as a post-processing step after speech recognition.
from funasr import AutoModel
# Standalone punctuation restoration
model = AutoModel(model="funasr/ct-punc", hub="hf", device="cuda")
result = model.generate(input="我们今天讨论三个议题首先是产品发布其次是市场策略最后是团队建设")
print(result[0]["text"])
# → 我们今天讨论三个议题,首先是产品发布,其次是市场策略,最后是团队建设。
from funasr import AutoModel
model = AutoModel(
model="funasr/paraformer-zh",
hub="hf",
vad_model="funasr/fsmn-vad",
punc_model="funasr/ct-punc",
device="cuda",
)
result = model.generate(input="audio.wav")
# Output text includes punctuation automatically