Downloads · 30 days
9
1% of all-time downloads
mofawzy/bert-ajgt
bert-ajgt 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 AJGT dataset
Downloads · 30 days
9
1% of all-time downloads
All-time downloads
1.3K
Public
Repo size
2.2 GB
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 67%
From the Hugging Face model README
Arabic version bert model fine tuned on AJGT dataset
The model were fine-tuned on ~1800 sentence from twitter for Jordanian dialect.
| class | precision | recall | f1-score | Support |
|---|---|---|---|---|
| 0 | 0.9462 | 0.9778 | 0.9617 | 90 |
| 1 | 0.9399 | 0.9689 | 0.9542 | 90 |
| Accuracy | 0.9611 | 180 |
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-ajgt"
model = AutoModelForSequenceClassification.from_pretrained(model_name,num_labels=2)
tokenizer = AutoTokenizer.from_pretrained(model_name)