External Publication
Visit Post

Extract polarity scores from probabilites

Hugging Face Forums [Unofficial] April 16, 2026
Source
Hi, All (from what I understand) transformer-based sentiment models output class probabilities (e.g., positive, neutral, negative), each in the range [0, 1]. I would like to transform these probabilities into a single polarity score ranging from -1 (negative) to 1 (positive). Is there a standard or recommended way to do this? Best, Malkolm

Discussion in the ATmosphere

Loading comments...