Ammar-alhaj-ali
commited on
Commit
•
6c6ee09
1
Parent(s):
715e6a7
Update README.md
Browse files
README.md
CHANGED
@@ -19,9 +19,9 @@ To use the model with a transformers pipeline:
|
|
19 |
```python
|
20 |
>>>from transformers import pipeline
|
21 |
>>>model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-poetry-classification')
|
22 |
-
>>>sentences = ['
|
23 |
-
'
|
24 |
>>>model(sentences)
|
25 |
-
[{'label': 'الوافر', 'score': 0.
|
26 |
-
{'label': 'الطويل', 'score': 0.
|
27 |
```
|
|
|
19 |
```python
|
20 |
>>>from transformers import pipeline
|
21 |
>>>model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-poetry-classification')
|
22 |
+
>>>sentences = ['ويوم نلتقي فيه قصير[sep]يطول اليوم لا ألقاك فيه',
|
23 |
+
'أما للهوى عليك نهي ولا أمر[sep]أراك عصيّ الدمع شيمتك الصبر']
|
24 |
>>>model(sentences)
|
25 |
+
[{'label': 'الوافر', 'score': 0.9979557991027832},
|
26 |
+
{'label': 'الطويل', 'score': 0.9646275043487549}]
|
27 |
```
|