File size: 1,055 Bytes
e797296
 
 
 
 
 
 
 
 
 
 
 
 
 
 
db06358
e797296
 
5e956a3
db06358
 
 
 
e797296
db06358
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
language:
- ar
widget:
- text: "لقد كان الاحتفال رائع"
- text: "هناك بعض القوانين التي يجب تغيرها"
- text: "الخدمة كانت سيئة"
tags:
- text classification
- Sentiment
---
## Arabic-MARBERT-Sentiment Model
#### Model description
**Arabic-MARBERT-Sentiment Model** is a Sentiment analysis model that was built by fine-tuning the [MARBERT](https://huggingface.co/UBC-NLP/MARBERT) model. For the fine-tuning, I used [KAUST dataset](https://www.kaggle.com/competitions/arabic-sentiment-analysis-2021-kaust), which includes 3 labels(positive,negative,and neutral).


#### How to use
To use the model with a transformers pipeline:
```python
>>>from transformers import pipeline
>>>model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-sentiment')
>>>sentences = ['لقد استمتعت بالحفلة', 'خدمة المطعم كانت محبطة']
>>>model(sentences)
[{'label': 'positive', 'score': 0.9577557444572449},
{'label': 'negative', 'score': 0.9158180952072144}]