Downloads · 30 days
13
2% of all-time downloads
mofawzy/bert-arsentd-lev
bert-arsentd-lev 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 ArSentD-LEV dataset
Downloads · 30 days
13
2% of all-time downloads
All-time downloads
683
Public
Parameters
135M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 50%
How the weights are stored.
F32135M · 100%
From the Hugging Face model README
Arabic version bert model fine tuned on ArSentD-LEV dataset
The model were fine-tuned on ~4000 sentence from twitter multiple dialect and five classes we used 3 out of 5 int the experiment.
| class | precision | recall | f1-score | Support |
|---|---|---|---|---|
| 0 | 0.8211 | 0.8080 | 0.8145 | 125 |
| 1 | 0.7174 | 0.7857 | 0.7500 | 84 |
| 2 | 0.6867 | 0.6404 | 0.6628 | 89 |
| Accuracy | 0.7517 | 298 |
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-arsentd-lev"
model = AutoModelForSequenceClassification.from_pretrained(model_name,num_labels=3)
tokenizer = AutoTokenizer.from_pretrained(model_name)