Update README.md
Browse files
README.md
CHANGED
|
@@ -47,7 +47,7 @@ leading to potential biases or inaccuracies when applied to unseen or diverse da
|
|
| 47 |
|
| 48 |
## How to Get Started with the Model
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
```python
|
| 53 |
from transformers import pipeline
|
|
@@ -59,7 +59,8 @@ pipe = pipeline("translation", model="alpha2002/eng_alpha_darija", tokenizer="al
|
|
| 59 |
input_text = "Hello, how are you?"
|
| 60 |
translation = pipe(input_text, src_lang="en_XX", tgt_lang="ar_AR")
|
| 61 |
|
| 62 |
-
print("Translation:", translation[0]['translation_text'])
|
|
|
|
| 63 |
|
| 64 |
## Training Details
|
| 65 |
|
|
|
|
| 47 |
|
| 48 |
## How to Get Started with the Model
|
| 49 |
|
| 50 |
+
You can start using the model for English-to-Darija translation with the following code:
|
| 51 |
|
| 52 |
```python
|
| 53 |
from transformers import pipeline
|
|
|
|
| 59 |
input_text = "Hello, how are you?"
|
| 60 |
translation = pipe(input_text, src_lang="en_XX", tgt_lang="ar_AR")
|
| 61 |
|
| 62 |
+
print("Translation:", translation[0]['translation_text'])
|
| 63 |
+
```
|
| 64 |
|
| 65 |
## Training Details
|
| 66 |
|