Downloads · 30 days
21
0% of all-time downloads
zafercavdar/distilbert-base-turkish-cased-emotion
distilbert-base-turkish-cased-emotion is a text classification model from zafercavdar. Use it when you need a label for a piece of text. It is set up for transformers.
Distilbert-base-turkish-cased finetuned on the emotion dataset (Translated to Turkish via Google Translate API) using HuggingFace Trainer with below Hyperparameters
Downloads · 30 days
21
0% of all-time downloads
All-time downloads
7.4K
Public
Repo size
545 MB
Likes
10
Public
Click a slice to open those files.
.bin272 MB · 100%
From the Hugging Face model README
Distilbert-base-turkish-cased finetuned on the emotion dataset (Translated to Turkish via Google Translate API) using HuggingFace Trainer with below Hyperparameters
learning rate 2e-5,
batch size 64,
num_train_epochs=8,
| Model | Accuracy | F1 Score | Test Sample per Second |
|---|---|---|---|
| Distilbert-base-turkish-cased-emotion | 83.25 | 83.17 | 232.197 |
from transformers import pipeline
classifier = pipeline("text-classification",
model='zafercavdar/distilbert-base-turkish-cased-emotion',
return_all_scores=True)
prediction = classifier("Bu kütüphaneyi seviyorum, en iyi yanı kolay kullanımı.", )
print(prediction)
"""
Output:
[
[
{'label': 'sadness', 'score': 0.0026786490343511105},
{'label': 'joy', 'score': 0.6600754261016846},
{'label': 'love', 'score': 0.3203163146972656},
{'label': 'anger', 'score': 0.004358913749456406},
{'label': 'fear', 'score': 0.002354539930820465},
{'label': 'surprise', 'score': 0.010216088965535164}
]
]
"""
{
'eval_accuracy': 0.8325,
'eval_f1': 0.8317301441160213,
'eval_loss': 0.5021793842315674,
'eval_runtime': 8.6167,
'eval_samples_per_second': 232.108,
'eval_steps_per_second': 3.714
}