/ Модель

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

Контекст
512 токенов
Параметры
136 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
bert-base-cased
Библиотека
transformers
Опубликована
6 мая 2024

bert-finetuned-emotion

Заполнение пропусковТекст → текст6 профессий

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

138скачиваний за 30 дней1лайквеса обновлены15 мая 2024

Бенчмарки

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

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

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

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

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

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

IsmaelMousa/bert-finetuned-emotion — модель классификации текста на основе BERT, дообученная автором на наборе dair-ai/emotion. Она определяет эмоции в англоязычных сообщениях; среди меток набора указаны любовь, удивление, радость, грусть, гнев и страх. Модель содержит 135,5 млн параметров, использует архитектуру BERT и принимает последовательности длиной до 512 токенов.

Модель подходит для анализа отзывов и обратной связи, мониторинга публикаций в социальных сетях и встраивания классификации эмоций в приложения. В README приведено значение loss 0,1656 на оценочной выборке. Модель преимущественно обучена на английском языке; точность может снижаться на специализированных текстах и других языках, а предсказания могут отражать смещения обучающих данных. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

bert-finetuned-emotion

This model is a fine-tuned version of bert-base-cased on the emotion dataset. It achieves the following results on the evaluation set:

  • Loss: 0.1656

Model description

The bert-finetuned-emotion model is a fine-tuned version of the BERT model for text classification, specifically trained for emotion classification tasks. It utilizes the BERT architecture, a powerful pre-trained language representation model developed by Google, and fine-tunes it on the dair-ai/emotion dataset. The model aims to predict the emotion associated with a given text input.

Intended uses & limitations

Intended Uses

  • Emotion classification in text: The model can be used to classify the emotions conveyed in textual data, aiding applications such as sentiment analysis, customer feedback analysis, and social media monitoring.
  • Integration into applications: This model can be integrated into various applications and platforms to provide emotion analysis functionalities.

Limitations

  • Domain-specific limitations: The model's performance may vary depending on the domain of the text data. It is primarily trained on general textual data and may not perform optimally on specialized domains.
  • Language limitations: The model is trained primarily on English text and may not generalize well to other languages without further adaptation.
  • Bias and fairness: As with any machine learning model, biases present in the training data may be reflected in the model's predictions. Care should be taken to mitigate biases, especially when deploying the model in sensitive applications.

Training and evaluation data

Dataset

The model is trained on the dair-ai/emotion dataset, which contains text samples labeled with emotions such as love, surprise, joy, sadness, anger and fear. The dataset provides a diverse range of textual expressions of emotions, enabling the model to learn patterns associated with different emotional states.

Data Preprocessing

Before training, the text data undergoes preprocessing steps such as tokenization, lowercasing, and truncation to prepare it for input into the BERT model.

Training procedure

The model is fine-tuned using transfer learning on top of the pre-trained BERT model. During training, the parameters of the BERT model are fine-tuned using backpropagation and gradient descent optimization to minimize a loss function, typically categorical cross-entropy, on the emotion classification task. The fine-tuning process involves adjusting the model's weights based on the labeled examples in the dair-ai/emotion dataset.

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 3.0

Training results

Training LossEpochStepValidation Loss
0.26531.020000.2193
0.15522.040000.1690
0.10283.060000.1656

Framework versions

  • Transformers 4.40.1
  • Pytorch 2.2.1+cu121
  • Datasets 2.19.1
  • Tokenizers 0.19.1

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей