请求加入做种队列,或现在用 pf download Omartificial-Intelligence-Space/Shami-MT 获取(CLI 指南)。
This model is based on the paper SHAMI-MT: A Syrian Arabic Dialect to Modern Standard Arabic Bidirectional Machine Translation System.
SHAMI-MT is a specialized machine translation model designed to translate from Modern Standard Arabic (MSA) to Syrian dialect. Built on the robust AraT5v2-base-1024 architecture, this model bridges the gap between formal Arabic and the rich dialectal variations of Syrian Arabic.
The model was trained on the Nâbra dataset, a comprehensive corpus of Syrian Arabic dialects with morphological annotations.
Citation:
Nayouf, A., Hammouda, T., Jarrar, M., Zaraket, F., & Kurdy, M. B. (2023).
Nâbra: Syrian Arabic dialects with morphological annotations.
arXiv preprint arXiv:2310.17315.
Key Statistics:
Data Sources:
The model was fine-tuned on the AraT5v2-base-1024 architecture with the following training metrics:
The model showed consistent improvement throughout training:
pip install transformers torch
from transformers import T5Tokenizer, AutoModelForSeq2SeqLM
# Load model and tokenizer
tokenizer = T5Tokenizer.from_pretrained("Omartificial-Intelligence-Space/Shami-MT")
model = AutoModelForSeq2SeqLM.from_pretrained("Omartificial-Intelligence-Space/Shami-MT")
# Example usage
ar_prompt = "مرحبا بك هنا" # MSA input
input_ids = tokenizer(ar_prompt, return_tensors="pt").input_ids
outputs = model.generate(input_ids)
print("Input (MSA):", ar_prompt)
print("Tokenized input:", tokenizer.tokenize(ar_prompt))
print("Output (Syrian Dialect):", tokenizer.decode(outputs[0], skip_special_tokens=True))
For optimal results, you can adjust generation parameters:
outputs = model.generate(
input_ids,
max_length=128,
num_beams=4,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id
)
The model was evaluated using GPT-4.1 as an automated judge with the following structured prompt:
"You are a language evaluation assistant. Compare the predicted Shami sentence to the reference.
Please return a rating from 0 to 5 and a short comment.
MSA Input: [input sentence]
Model Prediction (Shami dialect): [model output]
Ground Truth (Shami dialect): [reference translation]
Respond in this format:
Score: <number from 0 to 5>
Comment: <brief explanation of the score>"
Score Distribution Analysis:
This model is particularly useful for:
The model handles multiple Syrian sub-dialects, making it versatile for different regions within Syria:
🏛️ Urban Centers: Damascus, Aleppo
🏔️ Northern Regions: Latakia, Mardin
🏜️ Eastern Areas: Deir-ezzur, Raqqah
🌄 Central/Southern: Hama, Homs, Huran, Suwayda
If you use this model in your research, please cite:
@misc{shami-mt-2024,
title={SHAMI-MT: A Machine Translation Model From MSA to Syrian Dialect},
author={Omartificial Intelligence Space},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/Omartificial-Intelligence-Space/Shami-MT}
}
@article{nayouf2023nabra,
title={Nâbra: Syrian Arabic dialects with morphological annotations},
author={Nayouf, Amal and Hammouda, Tymaa Hasanain and Jarrar, Mustafa and Zaraket, Fadi A and Kurdy, Mohamad-Bassam},
journal={arXiv preprint arXiv:2310.17315},
year={2023}
}
@misc{onajar2025shamiMT,
title={Shami-MT-2MSA : A Machine Translation from Syrian Dialect to MSA},
author={Sibaee, Serry and Nacar, Omer},
year={2025}
}
For questions, issues, or contributions, please visit the model repository or contact the development team.
有文件?提交种子。
发布种子optimizer.pt 2.7 GiBmodel.safetensors 1.4 GiBrng_state.pth 13.9 KiBtraining_args.bin 5.4 KiBscheduler.pt 1 KiB