Guide

Sentiment Analysis Datasets: 11 Tested With One Model

Sentiment analysis datasets for reviews, tweets and financial news: size, labels, license and one model's score, 90% on reviews and 66% on finance news.

Javier BonillaCo-founder & CTO

Hugging Face's default sentiment model read "Operating profit was EUR 11.4 mn, up from EUR 7.5 mn" as negative. We ran it on up to 500 random rows from each of 11 popular datasets: it got about 90% right on product reviews and 66% on financial news. Same model, different text. So pick the sentiment analysis dataset whose text looks like yours and whose labels match your reports, then test the model on a few hundred rows of your own.

Dot plot of the default Hugging Face sentiment model's accuracy on 11 sentiment datasets, grouped by text type: reviews 83% to 90% plus two SST sets from the treebank the model was trained on, social posts 80% to 89%, financial news 66% and 69%

Which sentiment analysis dataset matches your text?

Sentiment analysis is text classification. The datasets differ in how many labels they use: two (positive or negative), three (with neutral), five (very negative to very positive), or 28 emotions where one comment can carry several. Pick the label scheme your reports need before you pick a dataset.

Dataset Text Labels and mix Model score
IMDb Movie reviews 2 labels, 50/50 89.0% (n 500)
Amazon Polarity Product reviews 2 labels, 50/50 90.4% (n 500)
Yelp Review Full Local business reviews 5 stars, 20% each 90.2% (n 409)
TripAdvisor hotels Hotel reviews 5 stars, 44% five-star 83.0% (n 441)
SST-2 Movie review sentences 2 labels 91.0% (n 500)
SST-5 Movie review sentences 5 labels 93.6% (n 409)
Twitter US Airline Customer-service tweets 3 labels, 63% negative 88.8% (n 392)
Sentiment140 Tweets 2 labels in training, 3 in test 82.7% (n 359)
TweetEval sentiment Tweets 3 labels, 45% neutral 79.9% (n 273)
Sp1786 multiclass Short texts, source not given 3 labels, 37% neutral 82.6% (n 310)
GoEmotions Reddit comments 27 emotions + neutral Not scored
Financial PhraseBank Financial news sentences 3 labels, 61% neutral 66.0% (n 197)

Model score is the share right on positive and negative rows. The model has no neutral answer, so neutral rows are left out. The SST scores aren't a fair test: the model was trained on SST-2, and SST-5 comes from the same treebank of movie review sentences.

Size, text length and license for each one:

Dataset Rows Median words License as stated
IMDb 50,000 + 50,000 unlabeled 174 None stated
Amazon Polarity 4,000,000 66 Apache-2.0 (Hugging Face card)
Yelp Review Full 700,000 99 Intended for educational use (Yelp)
TripAdvisor hotels 20,491 77 CC BY-NC 4.0
SST-2 70,042 7 (train), 19 (validation) Unknown
SST-5 11,855 18 None stated
Twitter US Airline 14,640 19 CC BY-NC-SA 4.0
Sentiment140 1,600,498 12 None attached
TweetEval sentiment 59,899 20 (train) CC BY 3.0, plus X's terms
Sp1786 multiclass 41,643 13 Apache-2.0 tag
GoEmotions 54,263 12 Apache-2.0 (repo)
Financial PhraseBank 2,264 (full agreement) 21 CC BY-NC-SA 3.0

You'll find all of these on Hugging Face.

Which datasets fit product and service reviews?

Reviews are the easy case: long, opinionated text with a star rating behind it. IMDb, Amazon Polarity and Yelp scored within 1.4 points of each other, so pick between them on domain, size and license, not score.

  • IMDb (Maas et al., 2011) has 25,000 training and 25,000 test reviews, split evenly. It only labels reviews rated 7 or more out of 10, or 4 or less, so there's no neutral and no lukewarm review to learn from.
  • Amazon Polarity turns 1 and 2 stars into negative and 4 and 5 into positive and drops the 3s. It's 4 million rows, enough for training, not just testing. The model called "If you are a serious cook, these are the only pots to buy!" negative. The multilingual Amazon reviews corpus is gone: its providers withdrew it from Hugging Face.
  • Yelp ships two ways. The full Open Dataset has 6,990,280 reviews of 150,346 businesses, with business details to join on, and Yelp says it's intended for educational use. The review-full set on Hugging Face gives 650,000 training rows at exactly 20% per star. The model read "Mean waitress. Long wait for food. Soso food. Creep patrons. But good music.Dirty interior." (1 star) as positive.
  • TripAdvisor hotel reviews (Alam, Ryu and Lee, 2016) is the one hotel set here. The copy we scored is lowercased with common words removed, so don't compare its 83.0% straight with the others.
  • SST-2 and SST-5 come from the Stanford Sentiment Treebank: 11,855 sentences from Rotten Tomatoes reviews, with 215,154 phrases labeled by people. SST-2's training rows are mostly phrases (median 7 words) while its validation rows are whole sentences (median 19). SST-2's test labels are hidden, so score on the validation split.

Which datasets fit tweets and social posts?

General tweet sets scored 79.9% to 82.7%, against about 90% on reviews. Positive tweets suffer most. It caught only 62.6% of the positive tweets in TweetEval and read "Need to re-watch WestWorld!" as negative.

  • Twitter US Airline Sentiment is the exception. It's tweets at US airlines, and the model scored 88.8% on them, close to reviews. Complaints with clear words are easy. Sarcasm isn't: "@USAirways yes, thanks but took forever" came back positive.
  • TweetEval's sentiment task is the SemEval-2017 Task 4 data with fixed splits. Watch the class mix: negative is 15.5% of training rows but 32.3% of test rows, so a model tuned on the training mix will label too few test tweets negative.
  • Sentiment140 has 1.6 million training tweets labeled from the emoticons in them, not by people, and with no neutral class. Only its 498 test tweets were labeled by hand. 18,534 of its training rows are repeats. It no longer loads with the Hugging Face datasets library, so get Stanford's original zip.
  • Sp1786's multiclass set shows up near the top of search results and has a clean three-way split (29% negative, 37% neutral, 34% positive). Its card names no author, source or paper, so you can't tell what text it is. Fine for practice; we wouldn't ship a model trained on it.
  • GoEmotions (Demszky et al., 2020) labels 58,009 Reddit comments with 27 emotions plus neutral (54,263 in the simplified copy on Hugging Face), and about a third of rows are neutral. Use it when positive and negative aren't enough, like telling annoyance from disappointment.

Which dataset fits financial news?

Financial PhraseBank (Malo et al., 2014) is 4,840 sentences from English financial news, labeled by 16 annotators with finance knowledge. It's the one where the ready-made model did worst: 66.0% on the sentences all annotators agreed on, and 69.3% on the looser subset.

It got every negative sentence right and half of the positive ones. "EBIT margin was up from 1.4 % to 5.1 % ." came back negative. It also called 46% of neutral sentences positive, and 61% of the set is neutral. Two limits before you build on it: it's licensed for non-commercial use unless you contact the authors, and it no longer loads with the Hugging Face datasets library, so read the zip in its repo.

Is there a dataset for support tickets or employee feedback?

No public dataset we'd trust covers support tickets or employee comments. For support, the airline tweets are the closest, and they're licensed for non-commercial use only. For anything else, your own labeled rows will tell you more than any benchmark here.

Why does a model's score drop on some datasets?

Three things pull a model's score down, and they'll do it on your text too.

  1. Domain words. In finance, words like "up", "loss" and "margin" carry meaning a model trained on movie reviews wasn't built to read.
  2. Short, informal text. Tweets give the model 12 to 20 words, with slang, @handles and sarcasm.
  3. No neutral class. A two-label model has to put every neutral row on one side. It called 29% of neutral tweets positive and 52% of 3-star Yelp reviews. If your reports have a neutral bucket, the score on positive and negative rows hides those mistakes.

Table of four rows from our test with the label people gave and the label the model gave: a Financial PhraseBank profit sentence people called positive and the model negative, a 1-star Yelp review the model called positive, a sarcastic airline tweet the model called positive, and a Sentiment140 tweet about a new Kindle the model called negative

How do you test a model on your own text?

Take 300 to 500 random rows of your own tickets, surveys or reviews, have two people label them, score them with the model, and compare per class. Read the rows it gets wrong. They'll tell you whether you need a domain dataset to fine-tune on, a three-label model, or just a different threshold. Our guide to sentiment analysis on reviews walks through the pipeline step by step.

Write the model's labels to a warehouse table next to your people's labels, and ask Querio in plain English, in the app or in Slack, where the two disagree. Once you score everything, ask which product line drives the angry reviews, or whether negative tickets come before churn. Querio's agent answers with SQL and Python in a notebook your analysts can open and rerun, and a result worth keeping becomes a dashboard or a scheduled automation. The notebooks, dashboards and definitions behind them are files in a git repo your team owns, and all of it works on the free plan.

How we tested

We ran the test on November 24, 2026, with transformers 5.24.0 and torch 2.15.0 on CPU. pipeline("sentiment-analysis") with no model named loads distilbert-base-uncased-finetuned-sst-2-english. From each dataset's test split (validation for SST-2, all rows for Financial PhraseBank, Twitter US Airline and TripAdvisor), we took up to 500 random rows (seed 42), truncated long texts, and scored them. Star ratings of 1 and 2 count as negative, 4 and 5 as positive, and 3 as neutral. SST-5's two lowest labels count as negative and its two highest as positive. Words are counted by spaces. Each score comes from one random draw, and once neutral rows are dropped some rest on 200 to 400 rows. At 200 rows, a score can be off by about seven points either way, so don't read much into small gaps.

Magic happens when
people and agents work together