Downloads · 30 days
195
3% of all-time downloads
Qishuai/distilbert_punctuator_zh
distilbert_punctuator_zh is a token classification model from Qishuai. Use it when you need labels on individual words, such as names. It is set up for transformers.
The model is fine-tuned based on DistilBertForTokenClassification for adding punctuations to plain text (simplified Chinese). The model is fine-tuned based on distilled model bert-base-chinese.
Downloads · 30 days
195
3% of all-time downloads
All-time downloads
6.3K
Public
Parameters
59.2M
473 MB on disk
Likes
4
Public
Click a slice to open those files.
.bin237 MB · 50%
From the Hugging Face model README
The model is fine-tuned based on DistilBertForTokenClassification for adding punctuations to plain text (simplified Chinese). The model is fine-tuned based on distilled model bert-base-chinese.
from transformers import DistilBertForTokenClassification, DistilBertTokenizerFast
model = DistilBertForTokenClassification.from_pretrained("Qishuai/distilbert_punctuator_zh")
tokenizer = DistilBertTokenizerFast.from_pretrained("Qishuai/distilbert_punctuator_zh")
Combination of following three dataset:
| precision | recall | f1-score | support | |
|---|---|---|---|---|
| C_COMMA | 0.67 | 0.59 | 0.63 | 91566 |
| C_DUNHAO | 0.50 | 0.37 | 0.42 | 21013 |
| C_EXLAMATIONMARK | 0.23 | 0.06 | 0.09 | 399 |
| C_PERIOD | 0.84 | 0.99 | 0.91 | 44258 |
| C_QUESTIONMARK | 0.00 | 1.00 | 0.00 | 0 |
| micro avg | 0.71 | 0.67 | 0.69 | 157236 |
| macro avg | 0.45 | 0.60 | 0.41 | 157236 |
| weighted avg | 0.69 | 0.67 | 0.68 | 157236 |