Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
Pipeline usage:
|
| 5 |
+
```
|
| 6 |
+
from transformers import pipeline
|
| 7 |
+
|
| 8 |
+
classifier = pipeline("text-classification", model="rahbi/alclam-base-v2-DID")
|
| 9 |
+
result = classifier("ما ذلحين والله ما عاد اصدقك")
|
| 10 |
+
print(result)
|
| 11 |
+
```
|
| 12 |
+
Output:
|
| 13 |
+
```
|
| 14 |
+
[{'label': 'يمني', 'score': 0.999321460723877}]
|
| 15 |
+
```
|
| 16 |
+
If you use AlcLaM, please cite the paper:
|
| 17 |
+
```
|
| 18 |
+
@article{murtadha2024alclam,
|
| 19 |
+
author = {Murtadha, Ahmed and Saghir, Alfasly and Wen, Bo and Jamaal, Qasem and Mohammed, Ahmed and Liu, Yunfeng},
|
| 20 |
+
title = {AlcLaM: Arabic Dialectal Language Model},
|
| 21 |
+
journal = {Arabic NLP 2024},
|
| 22 |
+
year = {2024},
|
| 23 |
+
url = {https://arxiv.org/abs/2407.13097},
|
| 24 |
+
eprinttype = {arXiv},
|
| 25 |
+
eprint = {2407.13097}
|
| 26 |
+
}```
|