Ammar-alhaj-ali
commited on
Commit
•
c32e3ae
1
Parent(s):
3a06cf6
Update README.md
Browse files
README.md
CHANGED
@@ -15,10 +15,10 @@ tags:
|
|
15 |
#### How to use
|
16 |
To use the model with a transformers pipeline:
|
17 |
```python
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
[{'label': 'Beirut', 'score': 0.9731963276863098},
|
23 |
{'label': 'Aleppo', 'score': 0.4592577815055847}]
|
24 |
|
|
|
15 |
#### How to use
|
16 |
To use the model with a transformers pipeline:
|
17 |
```python
|
18 |
+
from transformers import pipeline
|
19 |
+
model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-dialect-identification-city')
|
20 |
+
sentences = ['ناطرين البرنامج', 'اكلنا هوا بهل شروة']
|
21 |
+
model(sentences)
|
22 |
[{'label': 'Beirut', 'score': 0.9731963276863098},
|
23 |
{'label': 'Aleppo', 'score': 0.4592577815055847}]
|
24 |
|