Downloads · 30 days
21
1% of all-time downloads
ZakaryaRouzki/t5-punctuation
t5-punctuation is a machine learning model from ZakaryaRouzki. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
T5 model fine-tuned for punctuation restoration. Model currently supports only French Language. More language supports will be added later using mT5.
Downloads · 30 days
21
1% of all-time downloads
All-time downloads
1.9K
Public
Repo size
3.6 GB
Likes
1
Public
Click a slice to open those files.
.pt1.8 GB · 67%
From the Hugging Face model README
T5 model fine-tuned for punctuation restoration. Model currently supports only French Language. More language supports will be added later using mT5.
Train Datasets : Model trained using 2 french datasets (around 500k records):
More info will be added later.
TextPunctuator as a wrapper of the model.
pip install TextPunctuator
from Punctuator import TextPunctuator
punctuator = TextPunctuator(use_gpu=False)
# text input
text = "Sur la base de ces échanges Blake Lemoine a donc jugé que le système avait atteint \
un niveau de conscience lui permettant d'être sensible Ce dernier a ensuite envoyé \
par email un rapport sur la sensibilité supposée de LaMDA à deux cents employés de \
Google Très vite les dirigeants de l’entreprise ont rejeté les allégations"
text_punctuated = punctuator.punctuate(text, lang='fr')
text_punctuated
# output :
""" Sur la base de ces échanges, Blake Lemoine a donc jugé que le système avait atteint un niveau de
conscience lui permettant d’être sensible. Ce dernier a ensuite envoyé par email un rapport sur
la sensibilité supposée de LaMDA à deux cents employés de Google. Très vite, les dirigeants de
l’entreprise ont rejeté les allégations. """
Contact Zakarya ROUZKI or at Linkedin.