Commit
·
f684a95
1
Parent(s):
e85971a
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,16 +11,16 @@ We used a pretrained model to further train it on [HARD-Arabic-Dataset](https://
|
|
| 11 |
The model weights can be loaded using `transformers` library by HuggingFace.
|
| 12 |
```python
|
| 13 |
from transformers import AutoTokenizer, AutoModel
|
| 14 |
-
tokenizer = AutoTokenizer.from_pretrained("MutazYoune/
|
| 15 |
-
model = AutoModel.from_pretrained("MutazYoune/
|
| 16 |
```
|
| 17 |
Example using `pipeline`:
|
| 18 |
```python
|
| 19 |
from transformers import pipeline
|
| 20 |
fill_mask = pipeline(
|
| 21 |
"fill-mask",
|
| 22 |
-
model="MutazYoune/
|
| 23 |
-
tokenizer="MutazYoune/
|
| 24 |
)
|
| 25 |
fill_mask("الفندق جميل و لكن [MASK] بعيد")
|
| 26 |
```
|
|
|
|
| 11 |
The model weights can be loaded using `transformers` library by HuggingFace.
|
| 12 |
```python
|
| 13 |
from transformers import AutoTokenizer, AutoModel
|
| 14 |
+
tokenizer = AutoTokenizer.from_pretrained("MutazYoune/Ara_DialectBERT")
|
| 15 |
+
model = AutoModel.from_pretrained("MutazYoune/Ara_DialectBERT")
|
| 16 |
```
|
| 17 |
Example using `pipeline`:
|
| 18 |
```python
|
| 19 |
from transformers import pipeline
|
| 20 |
fill_mask = pipeline(
|
| 21 |
"fill-mask",
|
| 22 |
+
model="MutazYoune/Ara_DialectBERT",
|
| 23 |
+
tokenizer="MutazYoune/Ara_DialectBERT"
|
| 24 |
)
|
| 25 |
fill_mask("الفندق جميل و لكن [MASK] بعيد")
|
| 26 |
```
|