Downloads · 30 days
2
11% of all-time downloads
Lokeshwaran/distilbert-base-uncased-finetuned-emotion-tweets
distilbert-base-uncased-finetuned-emotion-tweets is a machine learning model from Lokeshwaran. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
2
11% of all-time downloads
All-time downloads
18
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
This model is a fine-tuned version of distilbert-base-uncased on an emotion dataset. It achieves the following results on the evaluation set:
The model is used to classify 6 basic emotions : Anger, Disgust, Fear, Joy, Sadness and Suprise. The model is finetuned by previously trained DistilBert classification model.
There are multiple ways to use this model in Huggingface Transformers. Possibly the simplest is using a pipeline:
from transformers import pipeline
model_id = "Lokeshwaran/distilbert-base-uncased-finetuned-emotion-tweets"
classifier = pipeline("text-classification", model = model_id)
custom_tweet = "The movie was very good"
preds = classifier(custom_tweet, return_all_scores=True)
print(preds[0)
# produces a list of dicts for each of the labels
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.7937 | 1.0 | 250 | 0.2966 | 0.9185 | 0.9180 |
| 0.2361 | 2.0 | 500 | 0.2112 | 0.928 | 0.9280 |