A sentiment model is only as good as the data it learned from, and only as trustworthy as the data you test it on. Public datasets let you train a baseline, benchmark a vendor, or sanity-check a model before rolling it out. They differ a lot in text type, label scheme, size, language and license.
Below is a curated list of the public sentiment analysis and emotion datasets that come up most often in practice, grouped by domain, with notes on what each is good for and where it falls short.
How to choose a sentiment dataset
Before picking a dataset, answer four questions:
- What does your real text look like? Long reviews, short tweets, chat messages and support emails behave very differently. Domain match matters more than dataset size.
- What label scheme do you need? Binary polarity, three-way (with neutral), five-point star ratings, or fine-grained emotions? See emotion detection vs. sentiment analysis if you are unsure.
- Which languages? Most classic datasets are English-only.
- Can you legally use it? Research-only licenses and platform terms rule some datasets out for commercial training.
Summary table
| Dataset | Domain | Labels | Language(s) |
|---|---|---|---|
| IMDB Large Movie Review | Movie reviews | Binary | English |
| Stanford Sentiment Treebank (SST-2 / SST-5) | Movie review sentences | Binary / 5-class | English |
| Yelp Review Polarity / Full | Business reviews | Binary / 1–5 stars | English |
| Amazon reviews (various releases) | Product reviews | 1–5 stars | Mostly English |
| Sentiment140 | Tweets | Binary (emoticon-derived) | English |
| TweetEval (sentiment, emotion) | Tweets | 3-class / emotions | English |
| SemEval sentiment tasks | Tweets, reviews | Varies by task | English + others |
| GoEmotions | Reddit comments | 27 emotions + neutral, multi-label | English |
| dair-ai/emotion | Tweets | 6 emotions | English |
| ISEAR | Self-reported experiences | 7 emotions | English |
| MARC (Multilingual Amazon Reviews) | Product reviews | 1–5 stars | en, de, es, fr, ja, zh |
Review datasets
1. IMDB Large Movie Review Dataset
Released by Maas et al. (2011), this is the "hello world" of sentiment classification: 50,000 movie reviews labeled positive or negative, split evenly into train and test, plus extra unlabeled reviews. Reviews are long and polarised (neutral reviews were excluded), which makes the task easier than most real data. Good for tutorials and quick baselines. Less useful as a proxy for short or mixed-sentiment text.
2. Stanford Sentiment Treebank (SST)
SST contains sentences from movie reviews, parsed into trees, with sentiment labels on every phrase as well as every full sentence. That phrase-level labeling made it a key benchmark for models that handle negation and composition ("not bad at all"). SST-5 keeps five classes from very negative to very positive. SST-2 is the binary version and part of the GLUE benchmark. Five-class accuracy is much lower than binary, which is a useful reminder of how hard fine distinctions are.
3. Yelp Review Polarity and Yelp Review Full
Introduced by Zhang et al. (2015) for character-level text classification, these come from the Yelp dataset. Yelp Review Full predicts the 1–5 star rating. Yelp Review Polarity collapses stars into negative and positive. They are larger than IMDB and closer to typical business-review text, which makes them a good choice if you plan to do customer review sentiment analysis.
4. Amazon product reviews
Several large Amazon review collections exist, most notably the releases maintained by Julian McAuley's lab at UCSD, which span many product categories and years. Labels are star ratings, so you can frame the task as regression, five-class classification or polarity. Watch for duplicates, very short reviews ("Great!") and the strong skew toward 5-star ratings.
Social media datasets
5. Sentiment140
Sentiment140 contains about 1.6 million tweets. They were labeled automatically by distant supervision: tweets with a positive emoticon such as :) were labeled positive, tweets with :( negative, and the emoticons were then removed. It is cheap and large but noisy, because emoticon use does not reliably reflect sentiment and sarcastic tweets are mislabeled. It is useful for pretraining on informal text, but evaluate on a manually labeled set.
6. TweetEval
TweetEval (Barbieri et al., 2020) packages several tweet classification tasks with standard splits, including sentiment (negative/neutral/positive) and emotion, alongside tasks like irony, hate speech and emoji prediction. Because the splits are fixed, it is a convenient benchmark for short-text models, and its irony task is a good stress test for sarcasm. See social media sentiment analysis for why that matters.
7. SemEval sentiment tasks
The SemEval workshop series has run many shared tasks on sentiment: Twitter sentiment, aspect-based sentiment on restaurant and laptop reviews, and affect-in-tweets tasks that cover emotion intensity and include some non-English data. Each task has its own format and license. They are particularly valuable for aspect-based sentiment, which few other datasets cover.
Emotion datasets
8. GoEmotions
Google Research's GoEmotions (Demszky et al., 2020) is the largest widely used manually annotated fine-grained emotion dataset: 58,009 Reddit comments labeled with 27 emotions plus neutral, multi-label. It is the basis of most modern emotion classifiers. Expect heavy label imbalance, because neutral, admiration and approval dominate while grief, pride and relief are rare. We cover it in depth in the GoEmotions dataset guide, and every label is explained on the emotions reference page.
9. dair-ai/emotion
A popular Hugging Face dataset of English tweets labeled with six emotions: sadness, joy, love, anger, fear and surprise. It is single-label and easy to get started with, which is why it shows up in many tutorials. The coarse label set and synthetic feel of some examples limit how far results transfer to real customer text.
10. ISEAR
The International Survey on Emotion Antecedents and Reactions (ISEAR) collected descriptions of situations in which respondents across many countries experienced emotions such as joy, fear, anger, sadness, disgust, shame and guilt. It is a classic resource in emotion research. Distribution has changed over the years, so check the current source and license before relying on it.
Multilingual datasets
11. MARC: Multilingual Amazon Reviews Corpus
MARC was released with product reviews in English, German, Spanish, French, Japanese and Chinese, labeled with star ratings and balanced across ratings, which made it a go-to benchmark for multilingual review classification. Amazon has since restricted or withdrawn public distribution, so availability depends on where you get it and what terms apply. Verify before you build on it.
12. Language-specific corpora
For most languages the best data comes from language-specific efforts, such as Arabic tweet and review corpora, German product and social datasets, Turkish movie and product reviews, and SemEval or regional shared tasks. Quality and licensing vary widely. Many projects instead machine-translate English datasets (including GoEmotions) and fine-tune a multilingual encoder. The trade-offs are covered in multilingual sentiment analysis.
Loading datasets in Python
Most of these datasets are on the Hugging Face Hub. The datasets library downloads, caches and splits them for you:
# pip install datasets
from datasets import load_dataset
imdb = load_dataset("imdb") # train / test / unsupervised
sst2 = load_dataset("glue", "sst2") # GLUE version of SST-2
tweets = load_dataset("tweet_eval", "sentiment") # negative / neutral / positive
emotions = load_dataset("google-research-datasets/go_emotions", "simplified")
print(imdb["train"][0]["text"][:200], imdb["train"][0]["label"])
print(tweets["train"].features["label"].names)
print(emotions["train"].features["labels"].feature.names) # 28 emotion namesDataset ids on the Hub sometimes move to namespaced versions, for example go_emotions becoming google-research-datasets/go_emotions. If an id fails, search the Hub for the current one, and read the dataset card for license and citation. For hands-on modelling, our sentiment analysis in Python guide picks up where this leaves off.
Licensing and ethics
- Licenses differ. Some datasets are permissively licensed, others are research-only, and some inherit restrictions from the source platform's terms of service. A dataset being downloadable is not permission to train a commercial model on it.
- User-generated text contains personal data. Tweets, Reddit comments and reviews can include names and sensitive details. Prefer datasets that mask identifiers, and do not republish raw text.
- Labels carry bias. Annotator pools, dialects and platform demographics all shape the labels. Models can learn to associate certain dialects or identity terms with negative sentiment. Test for that on your own data.
When to label your own data
Public datasets are good for baselines and benchmarks, but none of them are your customers. A few hundred labeled examples from your own domain often tell you more than a leaderboard. You will see whether a model handles your product names, your users' slang and your mix of languages.
If you would rather not train or host a model at all, the Sentiment API serves a multilingual GoEmotions model (28 labels plus a valence score, in Arabic, English, French, Spanish, German and Turkish) on serverless GPUs. Run it over your evaluation sample to compare it with alternatives; batches of up to 10,000 texts cost a fraction of a cent per message (see pricing).
Frequently asked questions
What is the best dataset for sentiment analysis?
There is no single best dataset; pick the one closest to your target text. For long-form reviews, IMDB or Yelp are standard. For short informal text, TweetEval or Sentiment140. For fine-grained emotions, GoEmotions. For non-English text, a multilingual corpus or a language-specific dataset. Always validate on a sample of your own data.
Is the IMDB dataset binary?
Yes. The Large Movie Review Dataset by Maas et al. (2011) contains 50,000 labeled movie reviews split evenly into training and test sets, each labeled positive or negative. It also includes additional unlabeled reviews.
What is the difference between SST-2 and SST-5?
Both come from the Stanford Sentiment Treebank of movie review sentences. SST-5 keeps five classes (very negative, negative, neutral, positive, very positive), while SST-2 drops neutral and merges the rest into a binary positive/negative task. SST-2 is part of the GLUE benchmark.
Which datasets have emotion labels instead of positive/negative?
GoEmotions (27 emotions plus neutral, multi-label, Reddit), the dair-ai emotion dataset (six emotions, English tweets), the TweetEval emotion task, and older psychology-derived resources such as ISEAR. These support emotion detection rather than polarity-only sentiment.
Can I use these datasets commercially?
It depends on each dataset's license and on the terms of the platform the text came from. Some are released for research use only, and some come from platforms whose terms restrict redistribution. Check the dataset card and original license before using one in a commercial product.