Ammar-alhaj-ali commited on
Commit
6c6ee09
1 Parent(s): 715e6a7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
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 = ['يطول اليوم لا ألقاك فيه [sep]ويوم نلتقي فيه قصير',
23
- 'أراك عصيّ الدمع شيمتك الصبر[sep]أما للهوى عليك نهي ولا أمر']
24
  >>>model(sentences)
25
- [{'label': 'الوافر', 'score': 0.988358199596405},
26
- {'label': 'الطويل', 'score': 0.9784850478172302}]
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
  ```