|
--- |
|
license: cc-by-nc-4.0 |
|
language: |
|
- en |
|
tags: |
|
- reddit |
|
- finance |
|
- comments |
|
pretty_name: Reddit Finance Comments for S&P 500 Companies |
|
size_categories: |
|
- 10K<n<100K |
|
--- |
|
|
|
# Reddit Finance Comments for S&P 500 Companies |
|
|
|
### Overview |
|
|
|
This dataset contains **Reddit comments** collected from posts discussing S&P 500 companies, with a focus on high-quality and relevant finance conversations. |
|
Each comment is linked to its original post, and detailed metadata for both comments and posts is included. |
|
|
|
**Original posts** are sourced from the [emilpartow/reddit_finance_posts_sp500](https://huggingface.co/datasets/emilpartow/reddit_finance_posts_sp500) dataset. |
|
**Comments** were collected and filtered for quality, then thoroughly cleaned to ensure true relevance to the company referenced in each post. |
|
|
|
--- |
|
|
|
### Dataset Structure |
|
|
|
- **Format:** CSV |
|
- **Rows:** One per Reddit comment |
|
- **Columns:** See below |
|
|
|
#### Columns |
|
|
|
| Column Name | Type | Description | |
|
|-----------------------|-----------|----------------------------------------------------------------------------| |
|
| post_id | string | Reddit ID of the post the comment belongs to | |
|
| comment_id | string | Reddit ID of the comment | |
|
| comment | string | Reddit comment text | |
|
| comment_score | float | Reddit upvote score of the comment | |
|
| comment_author | string | Reddit username of the comment author | |
|
| comment_created_utc | float | UTC timestamp of the comment's creation | |
|
| post_title | string | Title of the original Reddit post | |
|
| post_text | string | Text content of the original Reddit post | |
|
| post_score | float | Reddit upvote score of the post | |
|
| post_author | string | Reddit username of the post author | |
|
| post_created_utc | float | UTC timestamp of the post's creation | |
|
| company | string | S&P 500 company associated with the post and comment | |
|
| subreddit | string | Subreddit where the post was published | |
|
| post_url | string | URL to the original Reddit post | |
|
|
|
--- |
|
|
|
### Cleaning and Filtering |
|
|
|
- **Duplicates:** All duplicate comments (based on `comment_id`) have been removed. |
|
- **Missing Values:** Comments with missing critical fields (`comment`, `comment_author`, `post_id`, `company`) were removed. |
|
- **Minimum Length:** Only comments with more than 30 characters are included. |
|
- **Company Matching:** |
|
Only comments where the specified S&P 500 company name appears as a standalone word within the comment, post title, or post text are included. |
|
This ensures true relevance to the company and minimizes false positives from company names that may appear as substrings in unrelated contexts. |
|
--- |
|
|
|
### Use Cases |
|
|
|
- Financial sentiment analysis |
|
- Company-specific trend studies |
|
- NLP tasks (classification, entity recognition, summarization) |
|
- Research on retail investor behavior |
|
|
|
--- |
|
|
|
### Attribution |
|
|
|
- Original Reddit post dataset: [emilpartow/reddit_finance_posts_sp500](https://huggingface.co/datasets/emilpartow/reddit_finance_posts_sp500) |
|
- Financial Sentiment Pipeline: [emilpartow/financial-sentiment-pipeline](https://github.com/emilpartow/financial-sentiment-pipeline) |
|
|
|
--- |
|
|
|
### License |
|
|
|
Please abide by Reddit’s [Terms of Service](https://www.reddit.com/wiki/privacypolicy) when using this data. |
|
|
|
--- |
|
|
|
### Citation |
|
|
|
If you use this dataset, please cite as: |
|
|
|
``` |
|
@misc{emilpartow2024redditsp500comments, |
|
title = {Reddit Finance Comments for S&P 500 Companies}, |
|
author = {Emil Partow}, |
|
year = {2025}, |
|
howpublished = {HuggingFace Dataset}, |
|
url = {https://huggingface.co/datasets/emilpartow/reddit_comments_sp500} |
|
} |
|
``` |