Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- ar
|
| 5 |
+
- he
|
| 6 |
+
base_model:
|
| 7 |
+
- Helsinki-NLP/opus-mt-ar-he
|
| 8 |
+
pipeline_tag: translation
|
| 9 |
+
widget:
|
| 10 |
+
- text: رحت أشتري كتاب
|
| 11 |
+
tags:
|
| 12 |
+
- text2text-generation
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# Hebrew to Arabic Translator (Israeli Arabic Dialect)
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [Helsinki-NLP/opus-mt-ar-he](https://huggingface.co/Helsinki-NLP/opus-mt-he-ar) on an Israeli Arabic dialect corpus, trained for 15 epochs. It aims to translate informal conversational phrases in Israeli Arabic into Hebrew, making it suitable for applications involving colloquial or everyday expressions.
|
| 19 |
+
|
| 20 |
+
## Example Usage
|
| 21 |
+
|
| 22 |
+
Before using the fine-tuned model, load the tokenizer from the base model:
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
from transformers import pipeline, AutoTokenizer
|
| 26 |
+
# Load tokenizer from the base model
|
| 27 |
+
tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-he-ar")
|
| 28 |
+
# Initialize the translation pipeline with the fine-tuned model and base tokenizer
|
| 29 |
+
trans = pipeline("translation", model="HebArabNlpProject/mt-he-ar", tokenizer=tokenizer)
|
| 30 |
+
print(trans("رحت أشتري كتاب"))
|