Sentiment140 is a large-scale Twitter sentiment classification dataset containing 1.6 million tweets automatically labelled using emoticons as a form of distant supervision. Tweets containing positive emoticons (e.g., :), :-)) are labelled positive (sentiment=4), and tweets containing negative emoticons (e.g., :(, :-( ) are labelled negative (sentiment=0). The dataset is widely used as a benchmark for binary and multi-class sentiment classification in NLP research.
sentiment field serves as the label. Models are typically evaluated on the 498-example test split using accuracy and F1 score.The dataset contains English-language (en) tweets collected from the Twitter platform.
An example of 'train' looks as follows.
{
"date": "23-04-2010",
"query": "NO_QUERY",
"sentiment": 3,
"text": "train message",
"user": "train user"
}
The data fields are the same among all splits.
text: a string feature. The raw text content of the tweet.date: a string feature. The date and time the tweet was posted.user: a string feature. The Twitter username of the author.sentiment: a int32 feature. Sentiment label: 0 = negative, 2 = neutral, 4 = positive.query: a string feature. The query keyword used to retrieve the tweet, or NO_QUERY if none.| name | train | test |
|---|---|---|
| sentiment140 | 1600000 | 498 |
The dataset was created to address the lack of large-scale labelled data for Twitter sentiment analysis. Rather than relying on manual annotation, the authors used a distant supervision approach: emoticons in tweets serve as noisy but scalable sentiment labels. This allowed the collection of 1.6 million labelled examples without human annotators.
Tweets were collected using the Twitter API by querying for tweets containing positive or negative emoticons. Tweets with both positive and negative emoticons were discarded. Usernames and URLs were replaced with consistent placeholders (@user, URL) to reduce noise. The resulting dataset was split into a large training set (1.6M tweets) and a manually-labelled test set (498 tweets).
The text was produced by general Twitter users writing in English. The dataset was collected and processed by researchers at Stanford University: Alec Go, Richa Bhayani, and Lei Huang as part of the CS224N course project.
Training labels were assigned automatically using emoticons as proxies for sentiment (distant supervision) β no human annotation was used for the training set. The test set of 498 tweets was manually annotated by the authors for evaluation purposes.
Training set: no human annotators β labels derived automatically from emoticons. Test set: manually labelled by the paper's authors (Go, Bhayani, Huang) at Stanford University.
The dataset contains real Twitter usernames and tweet content from public accounts. While the data was publicly available at the time of collection, users may not have been aware their tweets would be used for research. Researchers using this dataset should be mindful of potential privacy implications, particularly when working with the user field.
Sentiment140 has been widely used to train and benchmark NLP models for social media sentiment analysis. Models trained on this data have applications in brand monitoring, public opinion research, and crisis detection. However, since labels are derived from emoticons, the dataset may not capture nuanced or ambiguous sentiment, which could affect the reliability of downstream models.
sentiment=2 (neutral) class only appears in the test set.The dataset was created by Alec Go, Richa Bhayani, and Lei Huang at Stanford University as part of the CS224N Natural Language Processing course. It is hosted on the HuggingFace Hub by @patrickvonplaten and @thomwolf.
The dataset was made freely available by the authors for research purposes. No explicit open-source license is attached. Users should refer to Twitter's Developer Policy regarding use of tweet content.
@article{go2009twitter,
title={Twitter sentiment classification using distant supervision},
author={Go, Alec and Bhayani, Richa and Huang, Lei},
journal={CS224N project report, Stanford},
volume={1},
number={12},
pages={2009},
year={2009}
}
Thanks to @patrickvonplaten, @thomwolf for adding this dataset.
Sentiment140 is a large-scale Twitter sentiment classification dataset containing 1.6 million tweets automatically labelled using emoticons as a form of distant supervision. Tweets containing positive emoticons (e.g., :), :-)) are labelled positive (sentiment=4), and tweets containing negative emoticons (e.g., :(, :-( ) are labelled negative (sentiment=0). The dataset is widely used as a benchmark for binary and multi-class sentiment classification in NLP research.
sentiment field serves as the label. Models are typically evaluated on the 498-example test split using accuracy and F1 score.The dataset contains English-language (en) tweets collected from the Twitter platform.
An example of 'train' looks as follows.
{
"date": "23-04-2010",
"query": "NO_QUERY",
"sentiment": 3,
"text": "train message",
"user": "train user"
}
The data fields are the same among all splits.
text: a string feature. The raw text content of the tweet.date: a string feature. The date and time the tweet was posted.user: a string feature. The Twitter username of the author.sentiment: a int32 feature. Sentiment label: 0 = negative, 2 = neutral, 4 = positive.query: a string feature. The query keyword used to retrieve the tweet, or NO_QUERY if none.| name | train | test |
|---|---|---|
| sentiment140 | 1600000 | 498 |
The dataset was created to address the lack of large-scale labelled data for Twitter sentiment analysis. Rather than relying on manual annotation, the authors used a distant supervision approach: emoticons in tweets serve as noisy but scalable sentiment labels. This allowed the collection of 1.6 million labelled examples without human annotators.
Tweets were collected using the Twitter API by querying for tweets containing positive or negative emoticons. Tweets with both positive and negative emoticons were discarded. Usernames and URLs were replaced with consistent placeholders (@user, URL) to reduce noise. The resulting dataset was split into a large training set (1.6M tweets) and a manually-labelled test set (498 tweets).
The text was produced by general Twitter users writing in English. The dataset was collected and processed by researchers at Stanford University: Alec Go, Richa Bhayani, and Lei Huang as part of the CS224N course project.
Training labels were assigned automatically using emoticons as proxies for sentiment (distant supervision) β no human annotation was used for the training set. The test set of 498 tweets was manually annotated by the authors for evaluation purposes.
Training set: no human annotators β labels derived automatically from emoticons. Test set: manually labelled by the paper's authors (Go, Bhayani, Huang) at Stanford University.
The dataset contains real Twitter usernames and tweet content from public accounts. While the data was publicly available at the time of collection, users may not have been aware their tweets would be used for research. Researchers using this dataset should be mindful of potential privacy implications, particularly when working with the user field.
Sentiment140 has been widely used to train and benchmark NLP models for social media sentiment analysis. Models trained on this data have applications in brand monitoring, public opinion research, and crisis detection. However, since labels are derived from emoticons, the dataset may not capture nuanced or ambiguous sentiment, which could affect the reliability of downstream models.
sentiment=2 (neutral) class only appears in the test set.The dataset was created by Alec Go, Richa Bhayani, and Lei Huang at Stanford University as part of the CS224N Natural Language Processing course. It is hosted on the HuggingFace Hub by @patrickvonplaten and @thomwolf.
The dataset was made freely available by the authors for research purposes. No explicit open-source license is attached. Users should refer to Twitter's Developer Policy regarding use of tweet content.
@article{go2009twitter,
title={Twitter sentiment classification using distant supervision},
author={Go, Alec and Bhayani, Richa and Huang, Lei},
journal={CS224N project report, Stanford},
volume={1},
number={12},
pages={2009},
year={2009}
}
Thanks to @patrickvonplaten, @thomwolf for adding this dataset.