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

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -3
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-news-article-classification')
22
- >>>sentences = ['أخطرت شركة أرامكو السعودية 4 على الأقل من المشترين في شمال آسيا بأنها ستورد إليهم الكميات المتعاقد عليها من النفط الخام كاملة في سبتمبرأيلول المقبل. وقالت مصادر مطلعة لرويترز إن السعودية، أكبر مصدر النفط في العالم، كانت قد رفعت سعر البيع الرسمي للمشترين الآسيويين إلى مستويات قياسية لذلك الشهر.']
 
23
  >>>model(sentences)
24
- [{'label': 'Finance', 'score': 0.9998553991317749}]
 
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
  ```