Ammar-alhaj-ali
commited on
Commit
•
715e6a7
1
Parent(s):
6ab1b92
Update README.md
Browse files
README.md
CHANGED
@@ -18,8 +18,10 @@ tags:
|
|
18 |
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-
|
22 |
-
>>>sentences = ['
|
|
|
23 |
>>>model(sentences)
|
24 |
-
[{'label': '
|
|
|
25 |
```
|
|
|
18 |
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 = ['يطول اليوم لا ألقاك فيه [sep]ويوم نلتقي فيه قصير',
|
23 |
+
'أراك عصيّ الدمع شيمتك الصبر[sep]أما للهوى عليك نهي ولا أمر']
|
24 |
>>>model(sentences)
|
25 |
+
[{'label': 'الوافر', 'score': 0.988358199596405},
|
26 |
+
{'label': 'الطويل', 'score': 0.9784850478172302}]
|
27 |
```
|