/ Модель

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

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

feel-it-italian-sentiment

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

Модель на базе UmBERTo классифицирует тональность итальянских текстов как положительную или отрицательную.

16 048скачиваний за 30 дней22лайкавеса обновлены15 авг 2022

Бенчмарки

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

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

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

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

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

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

MilaNLProc/feel-it-italian-sentiment — модель классификации тональности итальянского текста, разработанная авторами проекта FEEL-IT. Она дообучена на базе UmBERTo на корпусе FEEL-IT и предназначена для определения положительной или отрицательной тональности сообщений, в том числе публикаций в социальных сетях. Модель построена на архитектуре CamemBERT для классификации последовательностей, содержит 137,8 млн параметров и поддерживает контекст до 514 токенов.

Корпус FEEL-IT включает итальянские твиты с метками четырёх эмоций: гнев, страх, радость и грусть; в этой модели классы сведены к тональности: радость соответствует положительной, остальные эмоции — отрицательной. В описанной оценке на тестовой выборке SENTIPOLC16 модель, обученная на FEEL-IT, показала macro-F1 0,81 и точность 0,84. Она подходит для анализа итальянских текстов в социальных сетях, но опубликованная оценка и данные ориентированы на твиты, поэтому качество на других жанрах может отличаться. В README заявлена открытая лицензия, однако конкретные условия лицензирования модели не приведены.

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

  • Определение тональности итальянских твитов
  • Анализ отзывов на итальянском языке
  • Разметка итальянских публикаций по позитивной и негативной тональности
  • Мониторинг реакции пользователей на итальянском языке

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

FEEL-IT: Emotion and Sentiment Classification for the Italian Language

FEEL-IT Python Package

You can find the package that uses this model for emotion and sentiment classification here it is meant to be a very simple interface over HuggingFace models.

License

Users should refer to the following license

Abstract

Sentiment analysis is a common task to understand people's reactions online. Still, we often need more nuanced information: is the post negative because the user is angry or because they are sad?

An abundance of approaches has been introduced for tackling both tasks. However, at least for Italian, they all treat only one of the tasks at a time. We introduce FEEL-IT, a novel benchmark corpus of Italian Twitter posts annotated with four basic emotions: anger, fear, joy, sadness. By collapsing them, we can also do sentiment analysis. We evaluate our corpus on benchmark datasets for both emotion and sentiment classification, obtaining competitive results.

We release an open-source Python library, so researchers can use a model trained on FEEL-IT for inferring both sentiments and emotions from Italian text.

ModelDownload
feel-it-italian-sentimentLink
feel-it-italian-emotionLink

Model

The feel-it-italian-sentiment model performs sentiment analysis on Italian. We fine-tuned the UmBERTo model on our new dataset (i.e., FEEL-IT) obtaining state-of-the-art performances on different benchmark corpora.

Data

Our data has been collected by annotating tweets from a broad range of topics. In total, we have 2037 tweets annotated with an emotion label. More details can be found in our paper (https://aclanthology.org/2021.wassa-1.8/).

Performance

We evaluate our performance using SENTIPOLC16 Evalita. We collapsed the FEEL-IT classes into 2 by mapping joy to the positive class and anger, fear and sadness into the negative class. We compare three different experimental configurations training on FEEL-IT, SENTIPOLC16, or both by testing on the SENTIPOLC16 test set. The results show that training on FEEL-IT can provide better results on the SENTIPOLC16 test set than those that can be obtained with the SENTIPOLC16 training set.

Training DatasetMacro-F1Accuracy
SENTIPOLC160.800.81
FEEL-IT0.810.84
FEEL-IT+SentiPolc0.810.82

Usage

from transformers import pipeline
classifier = pipeline("text-classification",model='MilaNLProc/feel-it-italian-sentiment',top_k=2)
prediction = classifier("Oggi sono proprio contento!")
print(prediction)

Citation

Please use the following bibtex entry if you use this model in your project:

@inproceedings{bianchi2021feel,
    title = {{"FEEL-IT: Emotion and Sentiment Classification for the Italian Language"}},
    author = "Bianchi, Federico and Nozza, Debora and Hovy, Dirk",
    booktitle = "Proceedings of the 11th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis",
    year = "2021",
    publisher = "Association for Computational Linguistics",
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
CamembertForSequenceClassification
Ревизия весов
98744f7

0 моделей