Downloads · 30 days
16
4% of all-time downloads
cibfaye/marian-fr-to-wo-faulty
marian-fr-to-wo-faulty is a translation model from cibfaye. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of Helsinki-NLP/opus-mt-fr-en on the galsenai/french-wolof-translation dataset.
Downloads · 30 days
16
4% of all-time downloads
All-time downloads
424
Public
Parameters
74.7M
896 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors299 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of Helsinki-NLP/opus-mt-fr-en on the galsenai/french-wolof-translation dataset.
This MarianMT model has been fine-tuned for the task of translating text from French to Wolof. The dataset used for fine-tuning is available here.
The model was evaluated using the BLEU metric:
You can use this model directly with the Hugging Face transformers library:
from transformers import MarianMTModel, MarianTokenizer
model_name = "cibfaye/french-wolof-marian-fr-to-wo"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
def translate(text):
inputs = tokenizer(text, return_tensors="pt")
translated_tokens = model.generate(**inputs)
translation = tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)
return translation
text = "Bonjour, comment ça va ?"
translation = translate(text)
print("Translation:", translation)