winvoker/turkish-sentiment-analysis-dataset
Viewer • Updated • 490k • 1.03k • 47
How to use tgrhn/ModernBERT-Turkish-Sentiment-Classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tgrhn/ModernBERT-Turkish-Sentiment-Classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tgrhn/ModernBERT-Turkish-Sentiment-Classifier")
model = AutoModelForSequenceClassification.from_pretrained("tgrhn/ModernBERT-Turkish-Sentiment-Classifier")This model is a fine-tuned version of artiwise-ai/modernbert-base-tr-uncased on a Sentiment Analysis dataset winvoker/turkish-sentiment-analysis-dataset. It achieves the following results on the evaluation set:
The data cannot be shared.
The following hyperparameters were used during training:
| Epoch | Training Loss | Validation Loss | Accuracy | Precision | Recall | F1 Score |
|---|---|---|---|---|---|---|
| 1 | 0.161400 | 0.163402 | 0.945000 | 0.945220 | 0.945000 | 0.945107 |
| 2 | 0.034400 | 0.286277 | 0.942000 | 0.949040 | 0.942000 | 0.944231 |
| 3 | 0.003100 | 0.280550 | 0.956000 | 0.956370 | 0.956000 | 0.956170 |
Base model
answerdotai/ModernBERT-base