Downloads · 30 days
165
0% of all-time downloads
Ammar-alhaj-ali/arabic-MARBERT-sentiment
arabic-MARBERT-sentiment is a text classification model from Ammar-alhaj-ali. Use it when you need a label for a piece of text. It is set up for transformers.
Arabic-MARBERT-Sentiment Model is a Sentiment analysis model that was built by fine-tuning the MARBERT model. For the fine-tuning, I used KAUST dataset, which includes 3 labels(positive,negative,and neutral).
Downloads · 30 days
165
0% of all-time downloads
All-time downloads
83.2K
Public
Repo size
1.3 GB
Likes
11
Public
Click a slice to open those files.
.bin651 MB · 99%
From the Hugging Face model README
Arabic-MARBERT-Sentiment Model is a Sentiment analysis model that was built by fine-tuning the MARBERT model. For the fine-tuning, I used KAUST dataset, which includes 3 labels(positive,negative,and neutral).
To use the model with a transformers pipeline:
>>>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}]