Downloads · 30 days
13
5% of all-time downloads
LuigiJoseph/Helsinki-ar-en-ft
Helsinki-ar-en-ft is a translation model from LuigiJoseph. Use it when you need text moved from one language to another. It is set up for transformers.
This model is a fine-tuned version of Helsinki-NLP/opus-mt-ar-en on a custom dataset.
Downloads · 30 days
13
5% of all-time downloads
All-time downloads
243
Public
Parameters
76.4M
5.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors306 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of Helsinki-NLP/opus-mt-ar-en on a custom dataset.
ar)en)You can use this model with the transformers library:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = "LuigiJoseph/Helsinki-ar-en-ft"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
text = "مرحبا بالعالم, كيف حالك؟"
inputs = tokenizer.encode(text, return_tensors="pt")
outputs = model.generate(inputs)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translation) # English translations
The performance of the base model and the fine-tuned model was measured using the BLEU metric:
| Model | BLEU Score |
|---|---|
| Base Model (Helsinki-NLP/opus-mt-ar-en) | 42.85 |
| Fine-Tuned Model (this one) | 80.79 |