/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Архитектура
bert · dense
Библиотека
transformers
Опубликована
23 сен 2023

BERT-Emotions-Classifier

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

Дообученная модель BERT для многометочной классификации эмоций в англоязычном тексте.

591скачиваний за 30 дней17лайковвеса обновлены23 сен 2023

Бенчмарки

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

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

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

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

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

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

BERT-Emotions-Classifier — дообученная модель на архитектуре BERT, разработанная Ayoub Kirouane для многометочной классификации эмоций в тексте. Она принимает строку и возвращает одну или несколько меток эмоций с оценками: гнев, ожидание, отвращение, страх, радость, любовь, оптимизм, пессимизм, грусть, удивление и доверие.

Модель подходит для анализа эмоциональной окраски публикаций в социальных сетях и отзывов, а также для рекомендаций с учётом эмоционального контекста. Она обучена на наборе данных SemEval 2018 Task 1, содержит 136,7 млн параметров, использует библиотеку Transformers и обрабатывает контекст длиной до 512 токенов. Поддерживается английский язык. Лицензия в предоставленных данных не указана.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Description

The BERT-Emotions-Classifier is a fine-tuned BERT-based model designed for multi-label emotion classification. It has been trained on the sem_eval_2018_task_1 dataset, which includes text samples labeled with a variety of emotions, including anger, anticipation, disgust, fear, joy, love, optimism, pessimism, sadness, surprise, and trust. The model is capable of classifying text inputs into one or more of these emotion categories.

Overview

  • Model Name: BERT-Emotions-Classifier
  • Task: Multi-label emotion classification
  • Dataset: sem_eval_2018_task_1
  • Labels: ['anger', 'anticipation', 'disgust', 'fear', 'joy', 'love', 'optimism', 'pessimism', 'sadness', 'surprise', 'trust']
  • Base Model: BERT (Bidirectional Encoder Representations from Transformers)

Input Format

The model expects text input in the form of a string.

Output Format

  • The model provides a list of labels and associated scores, indicating the predicted emotions and their confidence scores.

Example Applications

  • Emotion analysis in social media posts
  • Sentiment analysis in customer reviews
  • Content recommendation based on emotional context

Limitations

  • Limited Emotion Categories: The BERT-Emotions-Classifier model is trained on a specific set of emotion categories. It may not accurately classify emotions that do not fall within these predefined categories.

  • Model Performance: The accuracy of emotion classification depends on the quality and diversity of the training data. The model's performance may vary for text inputs with uncommon or complex emotional expressions.

  • Bias and Fairness: Like any machine learning model, the BERT-Emotions-Classifier may exhibit bias in its predictions. Care should be taken to address and mitigate bias in real-world applications to ensure fairness and inclusivity.

  • Input Length: The model has limitations on the maximum input text length it can process effectively. Very long texts may be truncated or may not receive accurate classifications.

Ethical Considerations

When using this model, it's essential to consider the ethical implications of emotion analysis. Ensure that the use of emotional data respects privacy and consent, and avoid making decisions that could have adverse effects based solely on emotion analysis.

Inference

from transformers import pipeline

# Load the BERT-Emotions-Classifier
classifier = pipeline("text-classification", model="ayoubkirouane/BERT-Emotions-Classifier")

# Input text
text = "Your input text here"

# Perform emotion classification
results = classifier(text)

# Display the classification results
print(results)

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей