socialpulse-goemotions-v1
Versioned, immutable mirror of SamLowe/roberta-base-go_emotions used by SocialPulse for emotion classification.
| Source | SamLowe/roberta-base-go_emotions |
| Source revision | d75048347613a25d77de8cf6412eaae9fa7b26be |
| Mirror tag | sp5-v1.0.0 |
| Weights | Unchanged (byte-identical model.safetensors) |
| Architecture | roberta-base, multi-label classification, 512 tokens max |
Always load it with the tag, so the model cannot change under you:
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="SocialPulse-AI-2/socialpulse-goemotions-v1",
revision="sp5-v1.0.0",
top_k=None, # return the 28 scores, not only the top one
)
scores = classifier(["I can't believe they cancelled it again, this is so annoying."])[0]
No token is needed: the mirror is public.
Labels
28 labels (27 emotions + neutral). Each label gets an independent score between 0 and 1 (sigmoid, multi-label); the scores do not add up to 1.
admiration, amusement, anger, annoyance, approval, caring, confusion, curiosity, desire, disappointment, disapproval, disgust, embarrassment, excitement, fear, gratitude, grief, joy, love, nervousness, optimism, pride, realization, relief, remorse, sadness, surprise, neutral.
Thresholds: SocialPulse does not use 0.5
The 0.5 threshold suggested in the original model card is not the one SocialPulse uses.
SocialPulse maps the native labels to its own emotion taxonomy (mapping E) and applies:
- 0.30 global threshold.
- 0.40 for
trust(admiration,caring,approval). - Strictly greater than (
>). - The score of each SocialPulse emotion is the maximum of its native labels;
no_emotionwhen none passes its threshold (it is not theneutrallabel).
The mapping and the thresholds live in the SocialPulse inference code, not in this model. Using this mirror with 0.5 will not reproduce SocialPulse results.
Limitations
- English only. SocialPulse translates posts to English before inference. Measured on the SP4 golden set, the translation step costs about 0.04 Macro F1 and does not change the primary emotion.
- 512 tokens. Longer texts are truncated.
angeris rarely predicted by its own label. GoEmotions expresses it mostly asannoyanceanddisapproval; that is why mapping E groups them.- Thresholds are not calibrated yet. They were chosen on a small golden set (38 evaluable cases); the
trustthreshold is a provisional value pending recalibration with more data. - Training data bias. GoEmotions is built from Reddit comments, annotated by English speakers; it carries Reddit's demographic and topical biases and may contain offensive content.
License
This model is a versioned mirror of
SamLowe/roberta-base-go_emotions
(revision d75048347613a25d77de8cf6412eaae9fa7b26be), redistributed without changes to the weights.
- Model: MIT License, Copyright (c) 2023 SamLowe. The original
LICENSEfile is included in this repository. - Training data: GoEmotions, Copyright The Google Research Authors, licensed under the Apache License 2.0. Demszky et al. (2020), GoEmotions: A Dataset of Fine-Grained Emotions, ACL 2020. https://arxiv.org/abs/2005.00547
- The dataset texts are Reddit comments; the Apache-2.0 license covers the annotations and the compilation published by Google, not the authorship of each comment.
- No CardiffNLP / TweetEmotion data or NRC Emotion Lexicon material is included.
Changes from the original repository: this README.md replaces the original model card; pytorch_model.bin (duplicate of the weights) and trainer_state.json (training log) are not included. All other files are byte-identical.
@inproceedings{demszky2020goemotions,
author = {Demszky, Dorottya and Movshovitz-Attias, Dana and Ko, Jeongwoo and Cowen, Alan and Nemade, Gaurav and Ravi, Sujith},
booktitle = {58th Annual Meeting of the Association for Computational Linguistics (ACL)},
title = {{GoEmotions: A Dataset of Fine-Grained Emotions}},
year = {2020}
}