07 · Text analytics · Open weights
Seven emotions, read from one line of English.
cbx-emotion-classifier-68M
Finds the emotions an English text expresses: anger, disgust, fear, joy, sadness, surprise or neutral. A text can have more than one.
Real inputs it was built for.
Open any example in the Playground to see the live output.
Gratitude
Thank you so much, this made my whole week!
Surprise + joy
Wait, you're telling me he actually won? Wow.
Anger
Third time I have called about this refund and nobody has fixed it. Unacceptable.
Fear
I'm really nervous about my exam results tomorrow.
Neutral
The meeting has been moved to 3 pm on Thursday.
Benchmark
Measured against the alternative.
- cbx-emotion-classifier-68M0.635
- cbx-emotion-classifier-17M0.609
- TF-IDF + logistic regression0.571
From the model card
An English emotion classifier. Give it a short text (a comment, post, message or review) and it returns the emotions it expresses, from Ekman's six basic emotions plus neutral: anger, disgust, fear, joy, sadness, surprise and neutral. A text can have more than one (for example joy and surprise). Trained on GoEmotions, about 54,000 Reddit comments labelled by people, with Google's grouping of its 27 emotions into these 7.
It has 68.1M parameters: the Ettin encoder 68m fine-tuned on GoEmotions. Other sizes: 17M. On a CPU (8 threads, fp32) one short text (13 tokens) takes about 11 ms and a full 128-token text about 31 ms.
Licence: Apache License, Version 2.0. Read Intended use and disclaimer before using it.
Full results. Every number, from the card.
GoEmotions test: The original GoEmotions test split: 5,427 Reddit comments, labelled by people and grouped into the 7 labels with Google's mapping (33% neutral; 8% of the comments have more than one label). Never used in training or for any choice. Macro F1 is the mean F1 over the 7 labels, neutral included.
| Model | GoEmotions test (macro F1) |
|---|---|
| this model (68M) | 0.635 |
| 17M (same family) | 0.609 |
| TF-IDF + logistic regression (one per label) | 0.571 |
More views of GoEmotions test:
| Model | macro F1, tuned thresholds | macro F1 at 0.3 | macro F1, 6 emotions | micro F1 |
|---|---|---|---|---|
| this model (68M) | 0.635 | 0.637 | 0.627 | 0.698 |
| 17M (same family) | 0.609 | 0.599 | 0.599 | 0.677 |
| TF-IDF + logistic regression (one per label) | 0.571 | 0.499 | 0.559 | 0.645 |
With the tuned thresholds, 1.0% of the test texts get no label (no probability reaches its threshold); labels is then empty.
For reference, the GoEmotions paper (Demszky et al., 2020, Table 6) reports macro F1 0.64 for BERT-base (110M parameters) on the same test set and grouping, with a fixed threshold of 0.3; this model scores 0.637 at 0.3. TF-IDF: word n-grams with one logistic regression per label, trained on the same data, thresholds tuned on validation the same way.
Know its limits. Before you ship it.
Limitations
- The labels are noisy. GoEmotions raters often disagreed, and many texts are a judgement call. Most errors are between an emotion and
neutral(mild joy, annoyance or surprise called neutral, and the reverse). The scores above are against those labels. - Small labels:
disgust(F1 0.50) andfear(0.69) have few examples (123 and 98 in the test set), so they are less accurate and less precisely measured.disgustis often confused withanger. - Domain: English Reddit comments from 2005 to 2019, mostly US-centric. Expect lower accuracy on other kinds of text (support tickets, reviews, chat, formal writing), on other varieties of English and on other languages.
- Context. The model sees one text. Sarcasm, irony, quotes and replies to content it cannot see are often misread.
- Text, not people. It labels the emotion a text expresses, not what the writer actually feels.
- Bias. Errors are not spread evenly across topics, dialects or groups of people; text about political, religious or identity topics may be judged less accurately.
Training data
What it learned from.
The GoEmotions train split (43,410 comments) with its human labels, mapped to the 7 labels with Google's mapping. No other data, no LLM labels and no generated text. Fine-tuned with one sigmoid output per label; the thresholds were then tuned per label on the validation split (5,426 comments).
| Dataset | Languages | Licence | Used for |
|---|---|---|---|
| GoEmotions, Demszky et al., ACL 2020 (Google Research) | en | Apache-2.0 | training and testing |
2 sizes. Smaller is faster, larger is more accurate.
Run it on your own data. In the CobuildX Console.
Sign in to the console to call this model live, compare sizes and create an API key.