Downloads · 30 days
20
13% of all-time downloads
SandeepVvigneshwar/sentiment-classification-albert-large-v2
sentiment-classification-albert-large-v2 is a text classification model from SandeepVvigneshwar. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This model is a fine-tuned version of the ALBERT-Large model designed for emotion sentiment classification, capable of detecting six different emotional categories in text: Anger, Disgust, Fear, Happiness, Sadness, an…
Downloads · 30 days
20
13% of all-time downloads
All-time downloads
160
Public
Parameters
17.7M
142 MB on disk
Likes
0
Public
Click a slice to open those files.
.h570.8 MB · 49%
From the Hugging Face model README
This model is a fine-tuned version of the ALBERT-Large model designed for emotion sentiment classification, capable of detecting six different emotional categories in text: Anger, Disgust, Fear, Happiness, Sadness, and Surprise. It achieves high performance on sentiment classification tasks, making it suitable for a variety of real-world applications such as emotion detection, content moderation, and sentiment analysis.
| Metric | Value |
|---|---|
| Evaluation Loss | 0.08795 |
| Evaluation Accuracy | 94.15% |
| Evaluation Precision | 94.90% |
| Evaluation Recall | 94.15% |
| Evaluation F1-Score | 94.25% |
Use the code below to get started with the model.
from transformers import pipeline
emotion_classifier = pipeline("text-classification", model="SandeepVvigneshwar/sentiment-classification-albert-large-v2")
text = "Hello! How are you?"
emotion = emotion_classifier(text)
print(emotion)
transformers library