/ Модель

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

Контекст
512 токенов
Параметры
205 млн
Лицензия
MIT
Архитектура
bert · dense
Базовая модель
multilingual_go_emotions
Библиотека
transformers
Опубликована
23 мая 2025

multilingual_go_emotions_V1.1

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

Многоязычная BERT-модель для многометочной классификации текста по 27 эмоциям и нейтральному классу.

569скачиваний за 30 дней2лайкавеса обновлены6 июл 2026

Бенчмарки

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

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

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

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

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

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

AnasAlokla/multilingual_go_emotions_V1.1 — многоязычная модель классификации текста, разработанная AnasAlokla и дообученная на базе AnasAlokla/multilingual_go_emotions. Это BERT-модель с 205,1 млн параметров, которая присваивает тексту несколько эмоциональных меток одновременно: 27 категорий эмоций и нейтральный класс. Максимальная длина контекста — 512 токенов.

Модель предназначена для анализа отзывов, обращений в поддержку и сообщений в соцсетях, а также для эмоционально чувствительных чат-ботов и модерации контента. В README заявлена поддержка арабского, английского, французского, испанского, нидерландского и турецкого языков; метаданные подтверждают арабский, английский, французский, испанский, немецкий и турецкий, поэтому состав языков в источниках расходится. Карточка приводит метрики на тестовой выборке и отмечает улучшение версии V1.1 на редких эмоциональных категориях, но результаты зависят от класса и порога классификации.

Модель распространяется под лицензией MIT. Она определяет эмоции в тексте и не измеряет психологическое состояние человека; точность отдельных категорий неодинакова, поэтому результаты для чувствительных решений следует проверять.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

🌍 Multilingual GoEmotions Classifier 💬

Dataset Languages Task Base Model

Table of Contents

Overview

This repository contains a powerful multilingual, multi-label emotion classification model. It is fine-tuned from the robust bert-base-multilingual-cased model on the comprehensive multilingual_go_emotions dataset. The model is designed to analyze text and identify a wide spectrum of 27 different emotions, plus a neutral category. Its ability to detect multiple emotions simultaneously makes it highly effective for understanding nuanced text from diverse sources.

  • Model Name: AnasAlokla/multilingual_go_emotions_V1.1
  • Architecture: BERT (bert-base-multilingual-cased)
  • Tasks: Multi-Label Text Classification | Emotion Detection | Sentiment Analysis
  • Languages: Arabic, English, French, Spanish, Dutch, Turkish

Key Features

  • 🌍 Truly Multilingual: Natively supports 6 major languages, making it ideal for global applications.
  • 🏷️ Multi-Label Classification: Capable of detecting multiple emotions in a single piece of text, capturing complex emotional expressions.
  • 💪 High Performance: Built on bert-base-multilingual-cased, delivering strong results across all supported languages and emotions. See the detailed evaluation metrics.
  • 🔗 Open & Accessible: Comes with a live demo, the full dataset, and the complete training code for full transparency and reproducibility.
  • V1.1 Improved Version: An updated model is available that specifically improves performance on low-frequency emotion samples.

Supported Emotions

The model is trained to classify text into 27 distinct emotion categories as well as a neutral class:

EmotionEmojiEmotionEmoji
Admiration🤩Love❤️
Amusement😄Nervousness😰
Anger😠Optimism✨
Annoyance🙄Pride👑
Approval👍Realization💡
Caring🤗Relief😌
Confusion😕Remorse😔
Curiosity🤔Sadness😢
Desire🔥Surprise😲
Disappointment😞Disapproval👎
Disgust🤢Gratitude🙏
Embarrassment😳Grief😭
Excitement🎉Joy😊
Fear😱Neutral😐

Links

Installation

Install the required libraries using pip:

pip install transformers torch

Quickstart: Emotion Detection

You can easily use this model for multi-label emotion classification with the transformers pipeline. Set top_k=None to see all predicted emotions above the model's default threshold.

from transformers import pipeline

# Load the multilingual, multi-label emotion classification pipeline
emotion_classifier = pipeline(
    "text-classification",
    model="AnasAlokla/multilingual_go_emotions",
    top_k=None # To return all scores for each label
)

# --- Example 1: English ---
text_en = "I'm so happy for you, but I'm also a little bit sad to see you go."
results_en = emotion_classifier(text_en)
print(f"Text (EN): {text_en}")
print(f"Predictions: {results_en}\n")

# --- Example 2: Spanish ---
text_es = "¡Qué sorpresa! No me lo esperaba para nada."
results_es = emotion_classifier(text_es)
print(f"Text (ES): {text_es}")
print(f"Predictions: {results_es}\n")

# --- Example 3: Arabic ---
text_ar = "أشعر بخيبة أمل وغضب بسبب ما حدث"
results_ar = emotion_classifier(text_ar)
print(f"Text (AR): {text_ar}")
print(f"Predictions: {results_ar}")

Expected Output (structure):

Text (EN): I'm so happy for you, but I'm also a little bit sad to see you go. Predictions: [[{'label': 'joy', 'score': 0.9...}, {'label': 'sadness', 'score': 0.8...}, {'label': 'caring', 'score': 0.5...}, ...]]

Text (ES): ¡Qué sorpresa! No me lo esperaba para nada. Predictions: [[{'label': 'surprise', 'score': 0.9...}, {'label': 'excitement', 'score': 0.4...}, ...]]

Text (AR): أشعر بخيبة أمل وغضب بسبب ما حدث Predictions: [[{'label': 'disappointment', 'score': 0.9...}, {'label': 'anger', 'score': 0.9...}, ...]]

Evaluation

The model's performance was rigorously evaluated on the test set.

Test Set Performance

The following table shows the performance metrics of the fine-tuned model on the test set, broken down by emotion category.

The table below shows the performance of the test model:

Performance of Test Model (using class weight)

Labelsaccuracyprecisionrecallf1mccsupportthreshold
admiration0.9330.5980.6680.6310.59627900.15
amusement0.9670.6820.7930.7330.71818660.10
anger0.9520.3270.3560.3410.31711280.15
annoyance0.9080.2230.3010.2560.21117040.10
approval0.9200.3510.2880.3170.27620940.15
caring0.9700.3810.3030.3370.3258160.20
confusion0.9590.3590.3900.3740.35310200.25
curiosity0.9330.4050.5520.4670.43817340.10
desire0.9840.3850.4200.4020.3944140.30
disappointment0.9580.2780.2160.2430.22410140.40
disapproval0.9200.2210.3430.2690.23513980.10
disgust0.9720.3020.3830.3380.3266000.15
embarrassment0.9910.3880.3460.3660.3622400.45
excitement0.9680.2480.3330.2850.2726240.10
fear0.9850.5010.5260.5130.5064980.20
gratitude0.9880.9130.8940.9030.89720040.35
grief0.9990.5290.2500.3400.363360.85
joy0.9590.3810.4720.4220.40310320.15
love0.9710.7150.7890.7500.73618120.25
nervousness0.9960.4300.2830.3420.3471200.70
optimism0.9710.5730.4230.4870.47810620.45
pride0.9970.4680.2620.3360.349840.25
realization0.9670.2200.1460.1760.1637920.25
relief0.9930.1170.0940.1040.1021380.10
remorse0.9870.5860.6380.6110.6055160.20
sadness0.9600.4150.5190.4610.44410620.15
surprise0.9750.5180.4250.4670.4578280.60
neutral0.7330.5820.6210.6010.401105240.10

Test Model Performance (Threshold = 0.5)

The table below shows the performance of the test model with a threshold of 0.5:

Labelsaccuracyprecisionrecallf1mccsupportthreshold
admiration0.9390.6730.5700.6170.58727900.5
amusement0.9670.7350.6660.6990.68218660.5
anger0.9610.4000.2640.3180.30611280.5
annoyance0.9400.3280.1370.1940.18517040.5
approval0.9310.4320.2110.2830.26920940.5
caring0.9730.4310.2460.3140.3138160.5
confusion0.9630.4010.3370.3660.34910200.5
curiosity0.9440.4630.3610.4060.38017340.5
desire0.9850.4090.3840.3960.3894140.5
disappointment0.9610.3000.1980.2390.22410140.5
disapproval0.9450.2930.1950.2340.21213980.5
disgust0.9780.3760.2670.3120.3066000.5
embarrassment0.9910.3920.3330.3600.3572400.5
excitement0.9770.3480.2040.2570.2556240.5
fear0.9860.5470.4680.5040.4994980.5
gratitude0.9880.9250.8790.9020.89620040.5
grief0.9990.4000.2780.3280.333360.5
joy0.9660.4510.3670.4050.38910320.5
love0.9710.7420.7470.7440.72918120.5
nervousness0.9960.3820.2830.3250.3271200.5
optimism0.9710.5830.4130.4840.47710620.5
pride0.9970.5000.1900.2760.308840.5
realization0.9710.2700.1240.1700.1697920.5
relief0.9950.1250.0290.0470.0581380.5
remorse0.9880.6440.5600.5990.5945160.5
sadness0.9680.5120.4080.4540.44110620.5
surprise0.9740.4920.4300.4590.4478280.5
neutral0.7420.6480.4400.5240.368105240.5

Use Cases

This model is ideal for applications requiring nuanced emotional understanding across different languages:

Global Customer Feedback Analysis: Analyze customer reviews, support tickets, and survey responses from around the world to gauge sentiment.

Multilingual Social Media Monitoring: Track brand perception and public mood across different regions and languages.

Advanced Chatbot Development: Build more empathetic and responsive chatbots that can understand user emotions in their native language.

Content Moderation: Automatically flag toxic, aggressive, or sensitive content on international platforms.

Market Research: Gain insights into how different cultures express emotions in text.

Trained On

Base Model: AnasAlokla/multilingual_go_emotions - A powerful pretrained model supporting 104 languages.

Dataset: multilingual_go_emotions - A carefully translated and curated dataset for multilingual emotion analysis, based on the original Google GoEmotions dataset.

Fine-Tuning Guide

To adapt this model for your own dataset or to replicate the training process, you can follow the methodology outlined in the official code repository. The repository provides a complete, end-to-end example, including data preprocessing, training scripts, and evaluation logic.

For full details, please refer to the GitHub repository: emotion_chatbot

Tags

#multilingual-nlp #emotion-classification #text-classification #multi-label #bert #transformer #natural-language-processing #sentiment-analysis #deep-learning #arabic-nlp #french-nlp #spanish-nlp #goemotions #BERT-Emotion #edge-nlp #emotion-detection #offline-nlp
#sentiment-analysis #emojis #emotions #embedded-nlp #ai-for-iot #efficient-bert #nlp2025 #context-aware #edge-ml
#smart-home-ai #emotion-aware #voice-ai #eco-ai #chatbot #social-media
#mental-health #short-text #smart-replies #tone-analysis

Support & Contact

For questions, bug reports, or collaboration inquiries, please open an issue on the Hugging Face Hub repository or contact the author directly.

Author: Anas Hamid Alokla

📬 Email: anasaloklahaaa@gmail.com

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForSequenceClassification
Ревизия весов
315b226

0 моделей