How to use from the
Use from the
Transformers library
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("guymorlan/English2Dialect")
model = AutoModelForSeq2SeqLM.from_pretrained("guymorlan/English2Dialect")
Quick Links

English2Dialect

This model generates translations from English to colloquial Arabic, conditioning the translations on dialect. Supported dialects are: Palestinian/Jordanian, Syrian, Lebanese and Egyptian. Dialect is specified via the first input token which should be either P/S/L/E.

For example, to translate to Palestinian/Jordanian, use the input:

P What time is it now?

And for Syrian:

S What time is it now?

Training Data

The model was trained by fine-tuning the opus-mt-ar-en (MSA to English) model on ~85K parallel sentences in four dialects of colloquial Arabic.

Model Description

Downloads last month
17
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Spaces using guymorlan/English2Dialect 2