English

pysentimiento: A Python Toolkit for Opinion Mining and Social NLP tasks

Computation and Language 2024-07-16 v3

Abstract

In recent years, the extraction of opinions and information from user-generated text has attracted a lot of interest, largely due to the unprecedented volume of content in Social Media. However, social researchers face some issues in adopting cutting-edge tools for these tasks, as they are usually behind commercial APIs, unavailable for other languages than English, or very complex to use for non-experts. To address these issues, we present pysentimiento, a comprehensive multilingual Python toolkit designed for opinion mining and other Social NLP tasks. This open-source library brings state-of-the-art models for Spanish, English, Italian, and Portuguese in an easy-to-use Python library, allowing researchers to leverage these techniques. We present a comprehensive assessment of performance for several pre-trained language models across a variety of tasks, languages, and datasets, including an evaluation of fairness in the results.

Keywords

Cite

@article{arxiv.2106.09462,
  title  = {pysentimiento: A Python Toolkit for Opinion Mining and Social NLP tasks},
  author = {Juan Manuel Pérez and Mariela Rajngewerc and Juan Carlos Giudici and Damián A. Furman and Franco Luque and Laura Alonso Alemany and María Vanina Martínez},
  journal= {arXiv preprint arXiv:2106.09462},
  year   = {2024}
}
R2 v1 2026-06-24T03:18:45.896Z