FEEL-IT: Emotion and Sentiment Classification for the Italian Language
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.
Free software: MIT license
Documentation: https://feel-it.readthedocs.io.
Features
Emotion Classification (fear, joy, sadness, anger) in Italian
Sentiment Classification (positive, negative) in Italian
Installing
pip install -U feel-it
How To Use
The two classifiers are very easy to use.
from feel_it import EmotionClassifier, SentimentClassifier
emotion_classifier = EmotionClassifier()
emotion_classifier.predict(["sono molto felice", "ma che cazzo vuoi", "sono molto triste"])
>> ['joy', 'anger', 'sadness']
sentiment_classifier = SentimentClassifier()
sentiment_classifier.predict(["sono molto felice", "ma che cazzo vuoi", "sono molto triste"])
>> ['positive', 'negative', 'negative']
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",
}
HuggingFace Models
You can find our HF Models here:
Name |
Link |
|---|---|
MilaNLProc/feel-it-italian-emotion |
|
MilaNLProc/feel-it-italian-sentiment |
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2021-03-17)
First release on PyPI.
Metadata
Release files for feel-it 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| feel_it-1.0.1.tar.gz | 12.3 kB | Without provenance | Details for feel_it-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feel_it-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for feel_it-1.0.1-py2.py3-none-any.whl |
Total release size: 17.7 kB
Release files / feel_it-1.0.1.tar.gz
| Download URL | feel_it-1.0.1.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4579f1a0d7571a5dd0f32b6ae8a877157131c793992d6a67b7487dd454ae7a49
|
|
BLAKE2b-256 checksum How to use checksums |
a5be5b5d5ebacdd1548f0a8d218e753762f9bf8115fad8244dbe145549da73cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / feel_it-1.0.1-py2.py3-none-any.whl
| Download URL | feel_it-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7f77bdab855a67a25ed88597236078f6f0db9f90e68565f3332ee2bb41cc56a6
|
|
BLAKE2b-256 checksum How to use checksums |
5ae7ea5c5ded37562a631d1876a948a65942e35d874f69d34a061e9546cc2a36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for feel-it 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.