Downloads · 30 days
151
2% of all-time downloads
tourmii/vietnamese-punc-cap-denorm-v1
vietnamese-punc-cap-denorm-v1 is a machine learning model from tourmii. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Restores punctuation, capitalization, and denormalizes Vietnamese text (converts text numbers to digits, formats dates, etc.).
Downloads · 30 days
151
2% of all-time downloads
All-time downloads
8.5K
Public
Parameters
396M
4.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
Restores punctuation, capitalization, and denormalizes Vietnamese text (converts text numbers to digits, formats dates, etc.).
from transformers import pipeline
corrector = pipeline("text2text-generation", model="tourmii/vietnamese-punc-cap-denorm-v1")
text = "phát biểu nhậm chức chiều hai mươi tám tháng mười một ông vũ đại thắng cho biết việc được tín nhiệm bầu làm chủ tịch ủy ban nhân dân thành phố"
result = corrector(text, max_length=512)
print(result[0]['generated_text'])
Output: Phát biểu nhậm chức chiều 28/11, ông Vũ Đại Thắng cho biết việc được tín nhiệm bầu làm Chủ tịch UBND thành phố