Update README.md
Browse files
README.md
CHANGED
@@ -21,7 +21,7 @@ To use the model with the [CAMeL Tools](https://github.com/CAMeL-Lab/camel_tools
|
|
21 |
>>> sa.predict(sentences)
|
22 |
>>> ['positive', 'negative']
|
23 |
```
|
24 |
-
You can also use the
|
25 |
```python
|
26 |
>>> from transformers import pipeline
|
27 |
>>> sa = pipeline('sentiment-analysis', model='CAMeL-Lab/bert-base-arabic-camelbert-msa-sentiment')
|
|
|
21 |
>>> sa.predict(sentences)
|
22 |
>>> ['positive', 'negative']
|
23 |
```
|
24 |
+
You can also use the SA 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')
|