/ Модель

Характеристики

Контекст
8 192 токена
Параметры
140 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
mmBERT-small
Библиотека
transformers
Опубликована
1 окт 2026

multilingual-emotions-small

Классификация текстаТекст → label5 профессий

Мультиязычная модель Horizon Labs классифицирует текст по 28 меткам эмоций GoEmotions, в том числе на русском языке.

1 725скачиваний за 30 дней0лайковвеса обновлены31 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Multilingual Emotions Small — мультиязычный классификатор эмоций от Horizon Labs на базе mmBERT-small с архитектурой ModernBERT и примерно 140,5 млн параметров. Модель присваивает тексту независимые вероятности 28 меток GoEmotions, включая нейтральную; для одного текста возможны несколько эмоций. Контекст модели — до 8192 токенов, хотя при обучении использовалась максимальная длина 256 токенов.

Модель предназначена для классификации эмоций в текстах на английском и ещё 35 языках, включая русский. Она обучена на англоязычных комментариях Reddit GoEmotions и их машинных переводах; доступны веса Safetensors и ONNX, включая вариант для запуска в браузере через Transformers.js. Лицензия — Apache-2.0.

Порог 0,5 может быть неоптимален для отдельных меток: авторы предоставляют настроенные пороги для каждой метки. Редкие эмоции распознаются менее надёжно, а качество ниже на языках, не представленных в обучении, и на текстах вне домена Reddit. Метки субъективны, а модель оценивает эмоциональную окраску текста, а не действительное состояние автора.

Сценарии применения

  • определение нескольких эмоций в комментарии
  • разметка эмоциональной окраски отзывов
  • анализ эмоций в сообщениях на русском и других языках
  • поиск нейтральных и эмоционально окрашенных текстов
  • агрегация меток GoEmotions в шесть базовых эмоций

Ограничения

Качество ограничено субъективностью меток; редкие эмоции распознаются ненадёжно. Обучение основано на комментариях Reddit и их переводах, поэтому результаты могут быть слабее на естественных текстах и языках, не представленных в обучении; модель не определяет действительное состояние автора.

Для каких профессий подходит5

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Multilingual Emotions (small, 141M): the 28 GoEmotions labels in many languages

A multi-label emotion classifier with the 28 labels of Google's GoEmotions (admiration, amusement, anger, ... , surprise, neutral). It works on text in English and 35 other languages. It is a drop-in multilingual alternative to English-only GoEmotions models such as SamLowe/roberta-base-go_emotions: the labels are the same and it uses the same sigmoid multi-label output. Built on mmBERT-small, Apache-2.0. ONNX files for CPU and the browser (transformers.js) are included. A larger, more accurate version is available as multilingual-emotions-base. Try it in the browser.

  • Each label gets an independent probability. A text can have several emotions, or only neutral.
  • thresholds.json has one threshold per label, tuned on the GoEmotions validation set. Use it instead of 0.5, especially for rare labels (grief, pride, relief, nervousness). See Usage.
  • For the 6 Ekman emotions (anger, disgust, fear, joy, sadness, surprise), group the labels with the GoEmotions paper's mapping and take the maximum per group (ekman_mapping.json, code below).
  • onnx/model_quantized.onnx (int8 embeddings, 268 MB) agrees with fp32 on 98.7% of 448 test texts (all 28 labels thresholded at 0.5).

Usage

import json
from huggingface_hub import hf_hub_download
from transformers import pipeline

clf = pipeline("text-classification", model="Horizon-Labs/multilingual-emotions-small", top_k=None)
thr = json.load(open(hf_hub_download("Horizon-Labs/multilingual-emotions-small", "thresholds.json")))
out = clf(["Thank you so much, this made my day!", "Tengo miedo de que no lleguemos a tiempo."])
print([[x["label"] for x in o if x["score"] >= thr[x["label"]]] for o in out])
# e.g. [['excitement', 'gratitude', 'joy'], ['fear']]

# 6 Ekman emotions: max score over each group
ekman = json.load(open(hf_hub_download("Horizon-Labs/multilingual-emotions-small", "ekman_mapping.json")))
scores = {x["label"]: x["score"] for x in out[1]}
print({e: max(scores[l] for l in ls) for e, ls in ekman.items()})

transformers.js:

import { pipeline } from "@huggingface/transformers";
const clf = await pipeline("text-classification", "Horizon-Labs/multilingual-emotions-small", { dtype: "q8" });
console.log(await clf("Je suis tellement fier de toi !", { top_k: 5 }));

Evaluation

The benchmarks were used only for evaluation, and training texts that also occur in them were removed.

  • GoEmotions test (English Reddit comments, 5,427, 28 labels). Macro-F1 over the 28 labels, at threshold 0.5 and with per-label thresholds tuned on the GoEmotions validation set. Only models with the 28 GoEmotions labels are scored.
  • BRIGHTER (brighter-dataset/BRIGHTER-emotion-categories, CC-BY-4.0): human-labelled texts written in 28 languages (not translations), with 6 emotions and multiple labels per text; up to 1,500 test texts per language. Every model's labels are grouped into the 6 emotions (GoEmotions labels via the GoEmotions paper's Ekman mapping; for other label sets, by name). Each model gets one threshold per language and emotion, tuned on that language's BRIGHTER dev set. The score is macro-F1 over the annotated emotions, averaged over languages. "4 emotions" = anger, fear, joy and sadness only, the set every compared model covers.
modellicenceGoEmotions test, macro-F1 @0.5GoEmotions test, macro-F1 (tuned thresholds)BRIGHTER, 6 emotionsBRIGHTER, 4 emotionslabels
this model (141M)Apache-2.00.4470.4940.4060.43228 GoEmotions labels, multilingual
multilingual-emotions-base (308M)Apache-2.00.4730.5160.4200.449
SamLowe/roberta-base-go_emotions (125M)MIT0.4500.5190.2820.29128 GoEmotions labels, English
AnasAlokla/multilingual_go_emotionsMIT0.4550.5380.3370.35528 GoEmotions labels, multilingual
j-hartmann/emotion-english-distilroberta-base (82M)none given——0.2970.3157 labels, English
MilaNLProc/xlm-emo-t (278M)none given———0.4564 labels (anger, fear, joy, sadness), multilingual tweets
tabularisai/multilingual-emotion-classification (135M)CC-BY-NC-4.0——0.4040.42811 labels, multilingual
  • The table shows the released checkpoint. Means over two training seeds: small GoEmotions tuned .499, BRIGHTER 6 emotions .405, 4 emotions .434; base GoEmotions tuned .520, BRIGHTER 6 emotions .424, 4 emotions .454.
  • Models ahead of this one: GoEmotions (tuned): roberta-base-go_emotions, multilingual_go_emotions; BRIGHTER 6 emotions: none; BRIGHTER 4 emotions: xlm-emo-t. Most BRIGHTER languages are low-resource African and Asian languages that are not in our training data; GoEmotions texts are Reddit comments, while BRIGHTER includes tweets, news comments and other sources.

Per BRIGHTER language (macro-F1):

languagethis model (6 emotions)this model (4)xlm-emo-t (4)tabularisai (6, NC)
Afrikaans0.4050.4420.3500.339
Algerian Arabic0.4340.4290.4790.442
Moroccan Arabic0.3480.3820.4570.314
Chinese0.4320.4930.5640.439
German0.4180.4520.5100.434
English0.5430.5650.6180.522
Spanish0.6530.6720.7720.636
Hausa0.3350.3210.3420.354
Hindi0.6120.6060.7310.757
Igbo0.2500.2840.2940.272
Indonesian0.5060.5350.5870.495
Javanese0.4480.4800.4250.433
Kinyarwanda0.2280.2740.2610.194
Marathi0.5790.5690.6240.670
Nigerian Pidgin0.4200.3610.4250.451
Portuguese (Brazil)0.4080.5110.5640.406
Portuguese (Mozambique)0.2710.3510.3840.287
Romanian0.5870.6640.6830.570
Russian0.6400.6470.7550.706
Sundanese0.3960.4460.4580.389
Swahili0.2510.2280.2780.244
Swedish0.4450.4900.4750.367
Tatar0.5480.5510.3520.359
Ukrainian0.4360.4780.5170.462
Makhuwa0.1630.1880.1740.151
isiXhosa0.2980.3040.2940.300
Yoruba0.1550.2010.1960.154
isiZulu0.1620.1810.1890.164

Weakest GoEmotions labels (test F1, tuned thresholds): grief 0.20, relief 0.21, disappointment 0.29, realization 0.31, annoyance 0.36, excitement 0.36. Several of these are rare, and GoEmotions annotators often disagree on such labels.

Training

  • Data: the GoEmotions training set (43,410 English Reddit comments with human labels; Apache-2.0), plus translations of it into 35 languages made with Qwen3.8-27B (Apache-2.0), published as Horizon-Labs/go-emotions-multilingual. Each language gets its own random sample of 12,000 comments, and the human labels are copied to the translation (442,991 training examples in total). The languages are Afrikaans, Arabic, Bengali, Chinese (Simplified), Czech, Danish, Dutch, Finnish, French, German, Greek, Hausa, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Marathi, Norwegian, Persian, Polish, Portuguese (Brazilian), Romanian, Russian, Spanish, Swahili, Swedish, Tatar, Thai, Turkish, Ukrainian, Urdu, Vietnamese.
  • Translations that failed to parse, looked like refusals, had an implausible length or were copied unchanged were dropped (about 1.2%). 3% of the source comments (in every language) were held out for validation.
  • Model: mmBERT-small with 28 sigmoid outputs and binary cross-entropy, 1.5 epochs, learning rate 5e-5, max length 256 tokens. Epochs and learning rate were chosen on the GoEmotions validation set and BRIGHTER dev sets, never the test sets. The checkpoint was chosen by macro-F1 on held-out training comments.
  • Code: code/ in this repository.

Limitations

  • The labels come from English Reddit comments. Translations keep the labels but can shift nuance, and the model has seen little native (non-translated) emotional text outside English. BRIGHTER results show it is much weaker in languages it was not trained on.
  • The labels are subjective and inter-annotator agreement on GoEmotions is modest, so F1 around 0.5 is typical for this task. Rare labels are unreliable.
  • It classifies the emotion expressed in the text, not the writer's actual state. Don't use it to make decisions about individuals.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertForSequenceClassification
Ревизия весов
ac26dad

0 моделей