Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
If you use AlcLaM, please cite the paper:
|
5 |
```
|
6 |
@article{murtadha2024alclam,
|
|
|
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-v1-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,
|