Hugging Face Blog

Getting Started with Sentiment Analysis using Python

OpenAI Blog
Apr 6, 2017

Unsupervised sentiment neuron

We’ve developed an unsupervised system which learns an excellent representation of sentiment, despite being trained only to predict the next character in the text of Amazon reviews.

arXiv Computation and Language
Nov 4

Sentiment sensing: comparative analysis of multilingual sentiment dynamics

The paper introduces "sentiment sensing," a framework designed to overcome key obstacles in cross‑country sentiment analysis, such as language‑specific biases, compositional data constraints, and the lack of rigorous testing for temporal dynamics. It integrates compositional data analysis, functional data methods, and non‑parametric inference to allow valid multilingual comparisons and statistically defensible detection of sentiment shifts. The authors demonstrate the framework in two case studies, analyzing news articles from all 27 EU member states on energy and artificial intelligence topics.

By Mara Sabina Bernardi, Elisa Di Nuovo, Francesca Torti, Giuseppe Tirone, Nicolas Stefanovitch, Zsuzsanna Pasztor, Charles Macmillan, Domenico Perrotta, Bertrand De Longueville
Hugging Face Trending Papers
Jul 27

LLM-Based vs. Lexicon-Based Sentiment Signals for Tail-Risk Detection in Meme Stocks

This paper presents an empirical comparison of lexicon-based and Large Language Model (LLM)-based sentiment analysis for extracting market-relevant signals from social media discourse in highly volatile equity markets. Using Reddit data from r/WallStreetBets and focusing on meme stocks (GME, AMC, NOK), we construct time-aligned sentiment indicators and evaluate their relationship with market returns, with particular attention to extreme positive return events in the upper tail of the return distribution.

arXiv Computation and Language
Nov 4

SAGE (Subjectivity-Aware Generation Estimator): A Linguistic Framework for AI-Generated Review Detection *

The paper introduces SAGE, a lightweight linguistic framework that detects AI-generated peer reviews by exploiting subjectivity at semantic and pragmatic levels. It uses speech act annotations and model-predicted subjectivity scores to train a classifier achieving an AUROC of 0.9566. When combined with the Sem-Detect detector, SAGE boosts the true positive rate at 1% false positive rate on the APRDB benchmark from 0.874 to 0.985, surpassing current state‑of‑the‑art methods.

By Gonzalo Freijedo Aduna (IJN), Charles Yaiche (CRIStAL), Patrick Bas (CRIStAL), Alda Mari (IJN)
arXiv Computation and Language
Aug 31

Quantifying Affective Bias in Low-Resource Media: Large-Scale Emotion Profiling of Bengali Headlines

The paper investigates affective framing in Bengali digital journalism by analyzing 300,000 news headlines with zero‑shot inference using Gemma 3 4B to estimate dominant emotions and overall affective tone. Results reveal frequent negative emotions—especially anger, sadness, disappointment, and fear—across the corpus, and a pilot validation on 200 headlines indicates the model’s estimates are useful yet not definitive benchmarks. The authors suggest a bias‑sensitive news interface that visualizes emotional cues to help readers detect affective framing patterns in daily news.

By Mohd Ruhul Ameen, Akif Islam, Ayesha Siddiqua, Abu Saleh Musa Miah, Jungpil Shin
arXiv AI
Aug 7

Beyond Sentiment: Comparing Traditional NLP and LLM-Based Multi-Dimensional Analysis for Political News Evaluation

arXiv:2608. 05155v1 Announce Type: cross Abstract: Traditional sentiment analysis (SA) models, while effective for polarity classification, provide limited insight into the rhetorical, ideological, and framing dimensions of political discourse -- dimensions that are central to research in the social sciences and humanities (SSH).

By Maryam Fooladi, Federico Bottino