Downloads · 30 days
24
2% of all-time downloads
IsmaelMousa/bert-finetuned-emotion
bert-finetuned-emotion is a text classification model from IsmaelMousa. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of bert-base-cased on the emotion dataset. It achieves the following results on the evaluation set: - Loss: 0.1656
Downloads · 30 days
24
2% of all-time downloads
All-time downloads
1K
Public
Parameters
108M
5.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors433 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-cased on the emotion dataset. It achieves the following results on the evaluation set:
The bert-finetuned-emotion model is a fine-tuned version of the BERT model for text classification, specifically trained for emotion classification tasks.
It utilizes the BERT architecture, a powerful pre-trained language representation model developed by Google,
and fine-tunes it on the dair-ai/emotion dataset. The model aims to predict the emotion associated with a given text input.
The model is trained on the dair-ai/emotion dataset, which contains text samples labeled with emotions such as love, surprise, joy, sadness, anger and fear.
The dataset provides a diverse range of textual expressions of emotions, enabling the model to learn patterns associated with different emotional states.
Before training, the text data undergoes preprocessing steps such as tokenization, lowercasing, and truncation to prepare it for input into the BERT model.
The model is fine-tuned using transfer learning on top of the pre-trained BERT model.
During training, the parameters of the BERT model are fine-tuned using backpropagation and gradient descent optimization to minimize a loss function,
typically categorical cross-entropy, on the emotion classification task. The fine-tuning process involves adjusting the model's weights based on the labeled examples in the dair-ai/emotion dataset.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.2653 | 1.0 | 2000 | 0.2193 |
| 0.1552 | 2.0 | 4000 | 0.1690 |
| 0.1028 | 3.0 | 6000 | 0.1656 |