Downloads · 30 days
16
2% of all-time downloads
mofawzy/BERT-ASTD
BERT-ASTD is a text classification model from mofawzy. Use it when you need a label for a piece of text. It is set up for transformers.
Arabic version bert model fine tuned on ASTD dataset balanced version to identify twitter sentiments in Arabic language MSA dialect .
Downloads · 30 days
16
2% of all-time downloads
All-time downloads
877
Public
Repo size
6.7 GB
Likes
1
Public
Click a slice to open those files.
.pt2.7 GB · 50%
From the Hugging Face model README
Arabic version bert model fine tuned on ASTD dataset balanced version to identify twitter sentiments in Arabic language MSA dialect .
The model were fine-tuned on ~1330 tweet in Arabic language.
| class | precision | recall | f1-score | Support |
|---|---|---|---|---|
| 0 | 0.9328 | 0.9398 | 0.9363 | 133 |
| 1 | 0.9394 | 0.9323 | 0.9358 | 133 |
| Accuracy | 0.9361 | 266 |
You can use these models by installing torch or tensorflow and Huggingface library transformers. And you can use it directly by initializing it like this:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_name="mofawzy/BERT-ASTD"
model = AutoModelForSequenceClassification.from_pretrained(model_name,num_labels=2)
tokenizer = AutoTokenizer.from_pretrained(model_name)