Instructions to use moazx/AraBERT-Restaurant-Sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moazx/AraBERT-Restaurant-Sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="moazx/AraBERT-Restaurant-Sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("moazx/AraBERT-Restaurant-Sentiment") model = AutoModelForSequenceClassification.from_pretrained("moazx/AraBERT-Restaurant-Sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -89,6 +89,7 @@ print(f"التصنيف المتوقع: {predicted_class}")
|
|
| 89 |
print(f"احتمالية سلبي: {negative_prob:.2f}")
|
| 90 |
print(f"احتمالية إيجابي: {positive_prob:.2f}")
|
| 91 |
|
|
|
|
| 92 |
|
| 93 |
## Acknowledgements
|
| 94 |
|
|
|
|
| 89 |
print(f"احتمالية سلبي: {negative_prob:.2f}")
|
| 90 |
print(f"احتمالية إيجابي: {positive_prob:.2f}")
|
| 91 |
|
| 92 |
+
python'''
|
| 93 |
|
| 94 |
## Acknowledgements
|
| 95 |
|