go-inoue commited on
Commit
10a9274
1 Parent(s): 5894eec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -24,7 +24,7 @@ To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools
24
  You can also use the NER model directly with a transformers pipeline:
25
  ```python
26
  >>> from transformers import pipeline
27
- >>> sa = pipeline('text-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-sentiment')
28
  >>> sentences = ['أنا بخير', 'أنا لست بخير']
29
  >>> sa(sentences)
30
  [{'label': 'positive', 'score': 0.9616648554801941},
 
24
  You can also use the NER model directly with a transformers pipeline:
25
  ```python
26
  >>> from transformers import pipeline
27
+ >>> sa = pipeline('sentiment-analysis', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-sentiment')
28
  >>> sentences = ['أنا بخير', 'أنا لست بخير']
29
  >>> sa(sentences)
30
  [{'label': 'positive', 'score': 0.9616648554801941},