File size: 1,067 Bytes
347d2b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
language:
- ar
- he
base_model:
- Helsinki-NLP/opus-mt-ar-he
pipeline_tag: translation
widget:
- text: رحت أشتري كتاب
tags:
- text2text-generation
---


# Hebrew to Arabic  Translator (Israeli Arabic Dialect)

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.

## Example Usage

Before using the fine-tuned model, load the tokenizer from the base model:

```python
from transformers import pipeline, AutoTokenizer
# Load tokenizer from the base model
tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-he-ar")
# Initialize the translation pipeline with the fine-tuned model and base tokenizer
trans = pipeline("translation", model="HebArabNlpProject/mt-he-ar", tokenizer=tokenizer)
print(trans("رحت أشتري كتاب"))