Downloads · 30 days
26.6K
76% of all-time downloads
fdemelo/t5-base-spell-correction-fr
t5-base-spell-correction-fr is a machine learning model from fdemelo. 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 mit.
This model corrects spelling and punctuation problems of the input text (in French). It was trained on a synthetic dataset based on a French news corpus (2023) provided by the University of Leipzig
Downloads · 30 days
26.6K
76% of all-time downloads
All-time downloads
35.1K
Public
Parameters
223M
892 MB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors892 MB · 100%
From the Hugging Face model README
This model corrects spelling and punctuation problems of the input text (in French). It was trained on a synthetic dataset based on a French news corpus (2023) provided by the University of Leipzig using Happy Transformer. The base model used for training is airKlizz/t5-base-multi-fr-wiki-news. The following article was used as reference full article.
pip install happytransformer
from happytransformer import HappyTextToText, TTSettings
happy_tt = HappyTextToText("T5", "fdemelo/t5-base-spell-correction-fr")
args = TTSettings(num_beams=5, min_length=1)
# Add the prefix "grammaire: " before each input
result = happy_tt.generate_text("grammaire: Le vehicule a tombe encontrebas", args=args)
print(result.text) # corrected sentence