Ammar-alhaj-ali commited on
Commit
e54a340
1 Parent(s): e797296

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -16,9 +16,9 @@ tags:
16
  #### How to use
17
  To use the model with a transformers pipeline:
18
  ```python
19
- >>> from transformers import pipeline
20
- >>> model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-sentiment')
21
- >>> sentences = ['لقد استمتعت بالحفلة', 'خدمة المطعم كانت محبطة']
22
- >>> model(sentences)
23
  [{'label': 'positive', 'score': 0.9577557444572449},
24
  {'label': 'negative', 'score': 0.9158180952072144}]
 
16
  #### How to use
17
  To use the model with a transformers pipeline:
18
  ```python
19
+ from transformers import pipeline
20
+ model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-sentiment')
21
+ sentences = ['لقد استمتعت بالحفلة', 'خدمة المطعم كانت محبطة']
22
+ model(sentences)
23
  [{'label': 'positive', 'score': 0.9577557444572449},
24
  {'label': 'negative', 'score': 0.9158180952072144}]