Ammar-alhaj-ali
commited on
Commit
•
79192c0
1
Parent(s):
76d0c43
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 |
-
from transformers import pipeline
|
19 |
-
model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-dialect-identification-city')
|
20 |
-
sentences = ['ناطرين البرنامج', 'اكلنا هوا بهل شروة']
|
21 |
-
model(sentences)
|
22 |
-
|
23 |
-
|
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 |
|