/ Модель

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

Контекст
514 токенов
Параметры
95,2 млн
Архитектура
roberta · dense
Опубликована
2 мар 2022

emotion-english-distilroberta-base

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

Дообученная DistilRoBERTa классифицирует англоязычные тексты по семи категориям эмоций.

623 тыс.скачиваний за 30 дней505лайковвеса обновлены2 янв 2023

Бенчмарки

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

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

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

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

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

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

Модель j-hartmann/emotion-english-distilroberta-base разработана как дообученная версия DistilRoBERTa-base для классификации эмоций в англоязычном тексте. Она присваивает тексту один из семи классов: гнев, отвращение, страх, радость, нейтральное состояние, грусть или удивление. Архитектура — RoBERTa для классификации последовательностей; модель содержит 95,2 млн параметров и принимает последовательности длиной до 514 токенов.

Модель обучена на сбалансированной выборке примерно из 20 тысяч примеров, объединяющей тексты из Twitter, Reddit, самоотчётов студентов и диалогов телепередач. В README приведена точность 66% на оценочной выборке. Модель подходит для разметки эмоций в сообщениях и анализа эмоционального тона текстовых коллекций.

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

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

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

Ограничения

В README указана точность 66% на оценочной выборке; качество на других типах текстов может отличаться. Лицензия не установлена по предоставленным данным.

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

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

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

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

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

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

Открыть на Hugging Face

Emotion English DistilRoBERTa-base

Description ℹ

With this model, you can classify emotions in English text data. The model was trained on 6 diverse datasets (see Appendix below) and predicts Ekman's 6 basic emotions, plus a neutral class:

  1. anger 🤬
  2. disgust 🤢
  3. fear 😨
  4. joy 😀
  5. neutral 😐
  6. sadness 😭
  7. surprise 😲

The model is a fine-tuned checkpoint of DistilRoBERTa-base. For a 'non-distilled' emotion model, please refer to the model card of the RoBERTa-large version.

Application 🚀

a) Run emotion model with 3 lines of code on single text example using Hugging Face's pipeline command on Google Colab:

Open In Colab

from transformers import pipeline
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
classifier("I love this!")
Output:
[[{'label': 'anger', 'score': 0.004419783595949411},
  {'label': 'disgust', 'score': 0.0016119900392368436},
  {'label': 'fear', 'score': 0.0004138521908316761},
  {'label': 'joy', 'score': 0.9771687984466553},
  {'label': 'neutral', 'score': 0.005764586851000786},
  {'label': 'sadness', 'score': 0.002092392183840275},
  {'label': 'surprise', 'score': 0.008528684265911579}]]

b) Run emotion model on multiple examples and full datasets (e.g., .csv files) on Google Colab:

Open In Colab

Contact 💻

Please reach out to jochen.hartmann@tum.de if you have any questions or feedback.

Thanks to Samuel Domdey and chrsiebert for their support in making this model available.

Reference ✅

For attribution, please cite the following reference if you use this model. A working paper will be available soon.

Jochen Hartmann, "Emotion English DistilRoBERTa-base". https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/, 2022.

BibTex citation:

@misc{hartmann2022emotionenglish,
  author={Hartmann, Jochen},
  title={Emotion English DistilRoBERTa-base},
  year={2022},
  howpublished = {\url{https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/}},
}

Appendix 📚

Please find an overview of the datasets used for training below. All datasets contain English text. The table summarizes which emotions are available in each of the datasets. The datasets represent a diverse collection of text types. Specifically, they contain emotion labels for texts from Twitter, Reddit, student self-reports, and utterances from TV dialogues. As MELD (Multimodal EmotionLines Dataset) extends the popular EmotionLines dataset, EmotionLines itself is not included here.

Nameangerdisgustfearjoyneutralsadnesssurprise
Crowdflower (2016)Yes--YesYesYesYes
Emotion Dataset, Elvis et al. (2018)Yes-YesYes-YesYes
GoEmotions, Demszky et al. (2020)YesYesYesYesYesYesYes
ISEAR, Vikash (2018)YesYesYesYes-Yes-
MELD, Poria et al. (2019)YesYesYesYesYesYesYes
SemEval-2018, EI-reg, Mohammad et al. (2018)Yes-YesYes-Yes-

The model is trained on a balanced subset from the datasets listed above (2,811 observations per emotion, i.e., nearly 20k observations in total). 80% of this balanced subset is used for training and 20% for evaluation. The evaluation accuracy is 66% (vs. the random-chance baseline of 1/7 = 14%).

Scientific Applications 📖

Below you can find a list of papers using "Emotion English DistilRoBERTa-base". If you would like your paper to be added to the list, please send me an email.

  • Butt, S., Sharma, S., Sharma, R., Sidorov, G., & Gelbukh, A. (2022). What goes on inside rumour and non-rumour tweets and their reactions: A Psycholinguistic Analyses. Computers in Human Behavior, 107345.
  • Kuang, Z., Zong, S., Zhang, J., Chen, J., & Liu, H. (2022). Music-to-Text Synaesthesia: Generating Descriptive Text from Music Recordings. arXiv preprint arXiv:2210.00434.
  • Rozado, D., Hughes, R., & Halberstadt, J. (2022). Longitudinal analysis of sentiment and emotion in news media headlines using automated labelling with Transformer language models. Plos one, 17(10), e0276367.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
RobertaForSequenceClassification
Ревизия весов
0e1cd91

0 моделей