AraDiCE-msa-to-lev: An MSA to Levantine Machine Translation Model Based on NLLB-3.3B
This repository includes an MSA to Levantine machine translation model. This model was used to curate dialectal benchmarks for the AraDiCE paper (citation below). The human post-edited benchmarks can be found
here.
Sample Usage
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("QCRI/AraDiCE-msa-to-lev")
model = AutoModelForSeq2SeqLM.from_pretrained("QCRI/AraDiCE-msa-to-lev")
article = "من مصلحتك أن ترحل من كازابلانكا لفترة. هناك موقع لفرنسا الحرة بالقرب من برازفيل. قد أسهل لك العبور."
inputs = tokenizer(article, return_tensors="pt")
translated_tokens = model.generate(
**inputs, forced_bos_token_id=tokenizer.convert_tokens_to_ids("ajp_Arab"), max_length=30
)
translation = tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0]
print(translation)
License
The model is distributed under the
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)
. The full license text can be found in the accompanying
licenses_by-nc-sa_4.0_legalcode.txt
file.
@article{mousi2024aradicebenchmarksdialectalcultural,
title={{AraDiCE}: Benchmarks for Dialectal and Cultural Capabilities in LLMs},
author={Basel Mousi and Nadir Durrani and Fatema Ahmad and Md. Arid Hasan and Maram Hasanain and Tameem Kabbani and Fahim Dalvi and Shammur Absar Chowdhury and Firoj Alam},
year={2024},
publisher={arXiv:2409.11404},
url={https://arxiv.org/abs/2409.11404},
}
Runs of QCRI AraDiCE-msa-to-lev on huggingface.co
28
Total runs
0
24-hour runs
0
3-day runs
-10
7-day runs
-122
30-day runs
More Information About AraDiCE-msa-to-lev huggingface.co Model
AraDiCE-msa-to-lev huggingface.co is an AI model on huggingface.co that provides AraDiCE-msa-to-lev's model effect (), which can be used instantly with this QCRI AraDiCE-msa-to-lev model. huggingface.co supports a free trial of the AraDiCE-msa-to-lev model, and also provides paid use of the AraDiCE-msa-to-lev. Support call AraDiCE-msa-to-lev model through api, including Node.js, Python, http.
AraDiCE-msa-to-lev huggingface.co is an online trial and call api platform, which integrates AraDiCE-msa-to-lev's modeling effects, including api services, and provides a free online trial of AraDiCE-msa-to-lev, you can try AraDiCE-msa-to-lev online for free by clicking the link below.
QCRI AraDiCE-msa-to-lev online free url in huggingface.co:
AraDiCE-msa-to-lev is an open source model from GitHub that offers a free installation service, and any user can find AraDiCE-msa-to-lev on GitHub to install. At the same time, huggingface.co provides the effect of AraDiCE-msa-to-lev install, users can directly use AraDiCE-msa-to-lev installed effect in huggingface.co for debugging and trial. It also supports api for free installation.