Text Classification
Transformers
Safetensors
English
distilbert
emotion
sentiment
Eval Results (legacy)
text-embeddings-inference
Instructions to use LaelaZ/distilbert-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LaelaZ/distilbert-emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="LaelaZ/distilbert-emotion")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("LaelaZ/distilbert-emotion") model = AutoModelForSequenceClassification.from_pretrained("LaelaZ/distilbert-emotion") - Notebooks
- Google Colab
- Kaggle
Model card: voice pass (drop ship tell, em-dashes out); metrics and tables unchanged
Browse files
README.md
CHANGED
|
@@ -83,7 +83,7 @@ mistakes), which is where the model's real limits show.
|
|
| 83 |
## Error analysis
|
| 84 |
|
| 85 |
A real confusion matrix and per-class breakdown on the **full held-out test set (2,000
|
| 86 |
-
examples)**, regenerated from the
|
| 87 |
|
| 88 |

|
| 89 |
|
|
@@ -114,10 +114,10 @@ examples)**, regenerated from the shipped weights with `python -m emotion.error_
|
|
| 114 |
**Where it fails.** The single largest error axis is **joy ↔ love** (28 + 28 mutual
|
| 115 |
misclassifications): both are short, affect-positive messages, so the model leans toward the
|
| 116 |
higher-frequency neighbour. The rarest class, `surprise` (n=66), leaks mainly into `fear` (12)
|
| 117 |
-
and `joy` (7). The mistakes are semantically adjacent rather than random
|
| 118 |
manifold and is mostly losing the low-support classes, not misfiring broadly.
|
| 119 |
|
| 120 |
-
**Confidently wrong (highest-confidence mistakes)**
|
| 121 |
sure about, the slice worth reading:
|
| 122 |
|
| 123 |
| true | predicted | conf | text |
|
|
|
|
| 83 |
## Error analysis
|
| 84 |
|
| 85 |
A real confusion matrix and per-class breakdown on the **full held-out test set (2,000
|
| 86 |
+
examples)**, regenerated from the trained weights with `python -m emotion.error_report`.
|
| 87 |
|
| 88 |

|
| 89 |
|
|
|
|
| 114 |
**Where it fails.** The single largest error axis is **joy ↔ love** (28 + 28 mutual
|
| 115 |
misclassifications): both are short, affect-positive messages, so the model leans toward the
|
| 116 |
higher-frequency neighbour. The rarest class, `surprise` (n=66), leaks mainly into `fear` (12)
|
| 117 |
+
and `joy` (7). The mistakes are semantically adjacent rather than random. The model learned the
|
| 118 |
manifold and is mostly losing the low-support classes, not misfiring broadly.
|
| 119 |
|
| 120 |
+
**Confidently wrong (highest-confidence mistakes):** the cases the model got wrong *and* was
|
| 121 |
sure about, the slice worth reading:
|
| 122 |
|
| 123 |
| true | predicted | conf | text |
|