Downloads · 30 days
3
7% of all-time downloads
MahadKhannn/my-sentiment-analyzer
my-sentiment-analyzer is a text classification model from MahadKhannn. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Fine-tuned distilbert-base-uncased for binary sentiment classification (0 = negative, 1 = positive).
Downloads · 30 days
3
7% of all-time downloads
All-time downloads
44
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Fine-tuned distilbert-base-uncased for binary sentiment classification (0 = negative, 1 = positive).
Classify English-language text (reviews, comments, feedback) as positive or negative sentiment.
distilbert-base-uncased| Metric | Score |
|---|---|
| Accuracy | 0.876 |
| Precision | 0.871 |
| Recall | 0.883 |
| F1 | 0.877 |
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="MahadKhannn/my-sentiment-analyzer")
result = classifier("This was a great experience!")
print(result)