Views
No views yet
| Class | Precision (P) | Recall (R) | F1-Score (F1) |
|---|---|---|---|
| anger | 0.69 | 0.79 | 0.74 |
| fear | 0.96 | 0.99 | 0.98 |
| disgust | 0.94 | 0.95 | 0.95 |
| sadness | 0.88 | 0.84 | 0.86 |
| joy | 0.89 | 0.87 | 0.88 |
| none of them | 0.74 | 0.64 | 0.69 |
| Accuracy | 0.81 | ||
| Macro Avg | 0.85 | 0.85 | 0.85 |
| Weighted Avg | 0.85 | 0.81 | 0.81 |
transformers library from Hugging Face. Below is an example of how to load and use the model:1from transformers import pipeline
2
3# Load the fine-tuned model
4classifier = pipeline("text-classification", model="ringorsolya/Emotion_RoBERTa_german6_v7")
5
6# Example usage
7result = classifier("Heute fühle ich mich sehr glücklich!")
8print(result)