Downloads · 30 days
0
HarshGahlaut/distilb-sentiment-best
distilb-sentiment-best is a text classification model from HarshGahlaut. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of distilbert-base-uncased for binary sentiment classification (positive/negative). It achieves approximately 90% F1 score on the IMDb dataset.
Downloads · 30 days
0
Access
Public
Updated Nov 15, 2025
Repo size
268 MB
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased for binary sentiment classification (positive/negative).
It achieves approximately 90% F1 score on the IMDb dataset.
The model is part of the Hybrid-Sentiment-Engine, a project combining classical ML (TF-IDF + Logistic Regression) with transformer-based deep learning for flexible, high-accuracy sentiment analysis.
| Metric | Score |
|---|---|
| F1 Score | ~90% |
| Accuracy | ~90% |
| Precision | ~89% |
| Recall | ~90% |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "HarshGahlaut/distilb-sentiment-best"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)