{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreifwakrwhbwxm25zm3q7i5ofzzs2q5gdblfj5n7uk44gydh56o6lxi",
    "uri": "at://did:plc:pgryn3ephfd2xgft23qokfzt/app.bsky.feed.post/3mjlv5eanffs2"
  },
  "path": "/t/extract-polarity-scores-from-probabilites/175298#post_1",
  "publishedAt": "2026-04-16T07:20:04.000Z",
  "site": "https://discuss.huggingface.co",
  "textContent": "Hi,\n\nAll (from what I understand) transformer-based sentiment models output class probabilities (e.g., positive, neutral, negative), each in the range [0, 1].\n\nI 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?\n\nBest,\nMalkolm",
  "title": "Extract polarity scores from probabilites"
}