Downloads · 30 days
117
1% of all-time downloads
oliverguhr/spelling-correction-multilingual-base
spelling-correction-multilingual-base is a text generation model from oliverguhr. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is an experimental model that should fix your typos and punctuation. If you like to run your own experiments or train for a different language, take a look at the code.
Downloads · 30 days
117
1% of all-time downloads
All-time downloads
13.2K
Public
Parameters
248M
2 GB on disk
Likes
11
Public
Click a slice to open those files.
.bin990 MB · 50%
From the Hugging Face model README
This is an experimental model that should fix your typos and punctuation. If you like to run your own experiments or train for a different language, take a look at the code.
This is a proof of concept spelling correction model for English and German.
This project is work in progress, be aware that the model can produce artefacts. You can test the model using the pipeline-interface:
from transformers import pipeline
fix_spelling_pipeline = pipeline("text2text-generation",model="oliverguhr/spelling-correction-multilingual-base")
def fix_spelling(text, max_length = 256):
return fix_spelling_pipeline("fix:"+text,max_length = max_length)
print(fix_spelling_pipeline("can we mix the languages können wir die sprachen mischen",max_length=2048))