File size: 1,013 Bytes
46f657a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
license: cc-by-nc-4.0
datasets:
- guymorlan/levanti
language:
- ar
- he
pipeline_tag: translation
widget:
- text: P אני רוצה ללכת מחר לחנות
---

# Levanti (Hebrew -> colloquial Levantine Arabic) translator

Trained on the [Levanti](https://huggingface.co/datasets/guymorlan/levanti) dataset by fine-tuning [Helsinki-NLP/opus-mt-he-ar](https://huggingface.co/Helsinki-NLP/opus-mt-ar-he) for 8 epochs.
This model is trained to support dialect conditional generation by utilizing the first token (followed by a space) as an indicator of the desired dialect:
* **P** for Palestinian
* **L** for Lebanese
* **S** for Syrian
* **E** for Egyptian

# Example usage

```python
from transformers import pipeline
trans = pipeline("translation", "guymorlan/levanti_translate_he_ar")
trans("P אני רוצה ללכת מחר לחנות")
```
```
Out[1]: [{'translation_text': 'بدي أروح ع الدكان بكرا'}]
```

# Attribution
Created by Guy Mor-Lan.<br>
Contact: guy.mor AT mail.huji.ac.il