Downloads · 30 days
49
10% of all-time downloads
oddadmix/Masrawy-BiLingual-v1
Masrawy-BiLingual-v1 is a translation model from oddadmix. Use it when you need text moved from one language to another. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
49
10% of all-time downloads
All-time downloads
492
Public
Parameters
368M
1.5 GB on disk
Likes
9
Public
Click a slice to open those files.
.safetensors1.5 GB · 99%
From the Hugging Face model README
Masrawy-BiLingual-v1 is a bidirectional Arabic translation model designed to translate between Modern Standard Arabic (MSA) and Egyptian Arabic. This model was trained on a total of 360,000 sentences, covering both directions (MSA → Egyptian and Egyptian → MSA).
The model was evaluated using held-out test sets consisting of diverse, high-quality sentences in both MSA and Egyptian Arabic. The evaluation datasets included:
This resulted in thousands of sentences across various domains to comprehensively assess the model's performance in realistic scenarios.
The model was evaluated on the above test sets for both translation directions. The results are as follows:
| Task | BLEU | METEOR | CHRF |
|---|---|---|---|
| MSA → Egyptian | 0.5806 | 0.7690 | 81.02 |
| Egyptian → MSA | 0.5842 | 0.7901 | 79.83 |
These metrics indicate strong performance in both directions for Egyptian↔MSA translation.
When using the model, it is important to append a postfix to the input text to indicate the desired translation direction:
<arz> to the input.<ar> to the input.translation pipeline)from transformers import pipeline
model_name = "oddadmix/Masrawy-BiLingual-v1"
translator = pipeline("translation", model=model_name, tokenizer=model_name)
# Example: Translate MSA → Egyptian
input_text = "أنا أحب القراءة في المكتبة. <arz>"
translation = translator(input_text)[0]['translation_text']
print("MSA → Egyptian:", translation)
# Example: Translate Egyptian → MSA
input_text = "أنا بحب أقرا في المكتبة. <ar>"
translation = translator(input_text)[0]['translation_text']
print("Egyptian → MSA:", translation)