Downloads · 30 days
20
1% of all-time downloads
visegradmedia-emotion/Emotion_RoBERTa_czech6
Emotion_RoBERTa_czech6 is a text classification model from visegradmedia-emotion. 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 the RoBERTa model, specifically tailored for emotion classification tasks in Czech. The model was trained to classify textual data into six emotional categories (anger, fear, disg…
Downloads · 30 days
20
1% of all-time downloads
All-time downloads
2.7K
Public
Parameters
278M
3.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt2.2 GB · 50%
From the Hugging Face model README
This model is a fine-tuned version of the RoBERTa model, specifically tailored for emotion classification tasks in Czech. The model was trained to classify textual data into six emotional categories (anger, fear, disgust, sadness, joy, and none of them).
This model is intended for classifying textual data into emotional categories in the Czech language. It can be used in applications such as sentiment analysis, social media monitoring, customer feedback analysis, and similar tasks. The model predicts the dominant emotion in a given text among the six predefined categories.
| Class | Precision (P) | Recall (R) | F1-Score (F1) |
|---|---|---|---|
| anger | 0.73 | 0.69 | 0.71 |
| fear | 0.94 | 0.99 | 0.96 |
| disgust | 0.96 | 0.94 | 0.95 |
| sadness | 0.89 | 0.83 | 0.86 |
| joy | 0.88 | 0.87 | 0.87 |
| none of them | 0.67 | 0.72 | 0.69 |
| Accuracy | 0.81 | ||
| Macro Avg | 0.84 | 0.84 | 0.84 |
| Weighted Avg | 0.81 | 0.81 | 0.81 |
The model demonstrates strong performance in the fear, disgust, and joy categories, with particularly high precision, recall, and F1 scores. The model performs moderately well in detecting anger and none of them categories, indicating potential areas for improvement.
The model was fine-tuned on a custom Czech dataset containing textual samples labeled across six emotional categories. The dataset's distribution was considered during training to ensure balanced performance across classes.
You can use this model directly with the transformers library from Hugging Face. Below is an example of how to load and use the model:
from transformers import pipeline
# Load the fine-tuned model
classifier = pipeline("text-classification", model="visegradmedia-emotion/Emotion_RoBERTa_czech6")
# Example usage
result = classifier("Dnes se cítím velmi šťastný!")
print(result)