Update readme file
Browse files
README.md
CHANGED
|
@@ -13,4 +13,130 @@ tags:
|
|
| 13 |
pretty_name: twitter-sentiment-analysis
|
| 14 |
size_categories:
|
| 15 |
- 10M<n<100M
|
| 16 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
pretty_name: twitter-sentiment-analysis
|
| 14 |
size_categories:
|
| 15 |
- 10M<n<100M
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
# π¦ Twitter Sentiment Analysis (bdstar/twitter-sentiment-analysis)
|
| 20 |
+
|
| 21 |
+
π **Dataset Link:** [Hugging Face β bdstar/twitter-sentiment-analysis](https://huggingface.co/datasets/bdstar/twitter-sentiment-analysis)
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## π§ Overview
|
| 26 |
+
A **refined and merged version of Twitter text sentiment datasets**, providing a clean and well-balanced dataset for **sentiment classification** across three sentiment categories:
|
| 27 |
+
**`positive`**, **`negative`**, and **`neutral`**.
|
| 28 |
+
|
| 29 |
+
This dataset is split into three parts β **train**, **test**, and **validation** β each sourced from highly reputable open datasets.
|
| 30 |
+
It is designed for training, evaluating, and benchmarking **NLP models** for **Twitter Sentiment Analysis** and other **social media text classification** tasks.
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## ποΈ Dataset Splits
|
| 35 |
+
|
| 36 |
+
| Split | Source Dataset | Rows | File Size | Link |
|
| 37 |
+
|-------|----------------|------|------------|------|
|
| 38 |
+
| **Train** | Twitter Sentiment Dataset (3M labeled rows) | 3,142,209 | 361 MB | [Kaggle Dataset](https://www.kaggle.com/datasets/prkhrawsthi/twitter-sentiment-dataset-3-million-labelled-rows) |
|
| 39 |
+
| **Test** | Sentiment140 Dataset | 1,600,001 | 198 MB | [Kaggle Dataset](https://www.kaggle.com/datasets/kazanova/sentiment140) |
|
| 40 |
+
| **Validation** | MTEB Tweet Sentiment Extraction | 31,015 | 3.45 MB | [Hugging Face Dataset](https://huggingface.co/datasets/mteb/tweet_sentiment_extraction) |
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
## π§© Column Descriptions
|
| 45 |
+
|
| 46 |
+
| Column | Type | Description |
|
| 47 |
+
|---------|------|-------------|
|
| 48 |
+
| **ID** | Integer | Auto-incremental unique ID for each row |
|
| 49 |
+
| **text** | String | Tweet text content |
|
| 50 |
+
| **label** | String | Sentiment category β one of `positive`, `negative`, or `neutral` |
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## π Dataset Summary
|
| 55 |
+
|
| 56 |
+
| Property | Value |
|
| 57 |
+
|-----------|-------|
|
| 58 |
+
| **Total Rows** | 4,773,225 |
|
| 59 |
+
| **Columns** | 3 |
|
| 60 |
+
| **File Formats** | JSON / Parquet / Pandas / Polars / Croissant |
|
| 61 |
+
| **License** | MIT |
|
| 62 |
+
| **Author** | Md Abdullah Al Mamun |
|
| 63 |
+
| **Year** | 2025 |
|
| 64 |
+
| **Source** | Refined version of Twitter Sentiment Dataset |
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## π Detailed Statistics
|
| 69 |
+
|
| 70 |
+
### ποΈββοΈ Train Set
|
| 71 |
+
**Source:** [Twitter Sentiment Dataset (3M labeled rows)](https://www.kaggle.com/datasets/prkhrawsthi/twitter-sentiment-dataset-3-million-labelled-rows)
|
| 72 |
+
**File Size:** 361 MB
|
| 73 |
+
**Rows:** 3,142,209
|
| 74 |
+
|
| 75 |
+
| Label | Count | Percentage |
|
| 76 |
+
|--------|--------|-------------|
|
| 77 |
+
| Positive | 1,571,104 | 50.0% |
|
| 78 |
+
| Negative | 1,571,105 | 50.0% |
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
### π§ͺ Test Set
|
| 83 |
+
**Source:** [Sentiment140](https://www.kaggle.com/datasets/kazanova/sentiment140)
|
| 84 |
+
**File Size:** 198 MB
|
| 85 |
+
**Rows:** 1,600,001
|
| 86 |
+
|
| 87 |
+
| Label | Count | Percentage |
|
| 88 |
+
|--------|--------|-------------|
|
| 89 |
+
| Positive | 800,000 | 50.0% |
|
| 90 |
+
| Negative | 800,001 | 50.0% |
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
### π§ Validation Set
|
| 95 |
+
**Source:** [MTEB β Tweet Sentiment Extraction](https://huggingface.co/datasets/mteb/tweet_sentiment_extraction)
|
| 96 |
+
**File Size:** 3.45 MB
|
| 97 |
+
**Rows:** 31,015
|
| 98 |
+
|
| 99 |
+
| Label | Count | Percentage |
|
| 100 |
+
|--------|--------|-------------|
|
| 101 |
+
| Neutral | 12,561 | 40.5% |
|
| 102 |
+
| Positive | 9,676 | 31.2% |
|
| 103 |
+
| Negative | 8,778 | 28.3% |
|
| 104 |
+
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
## π‘ Usage Example (Python)
|
| 108 |
+
|
| 109 |
+
```python
|
| 110 |
+
from datasets import load_dataset
|
| 111 |
+
|
| 112 |
+
# Load dataset from Hugging Face
|
| 113 |
+
dataset = load_dataset("bdstar/twitter-sentiment-analysis")
|
| 114 |
+
|
| 115 |
+
# Access splits
|
| 116 |
+
train = dataset["train"]
|
| 117 |
+
test = dataset["test"]
|
| 118 |
+
validation = dataset["validation"]
|
| 119 |
+
|
| 120 |
+
# Display sample
|
| 121 |
+
print(train[0])
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
## π·οΈ Citation
|
| 126 |
+
@dataset{bdstar2025twitter,
|
| 127 |
+
title = {Twitter Sentiment Analysis (Refined Dataset)},
|
| 128 |
+
author = {Md Abdullah Al Mamun},
|
| 129 |
+
year = {2025},
|
| 130 |
+
howpublished = {Hugging Face},
|
| 131 |
+
url = {https://huggingface.co/datasets/bdstar/twitter-sentiment-analysis}
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
---
|
| 136 |
+
|
| 137 |
+
## π¬ Contact
|
| 138 |
+
|
| 139 |
+
For questions, improvements, or collaboration:
|
| 140 |
+
**Author:** Md Abdullah Al Mamun
|
| 141 |
+
π§ **Email:** mamunbd.ruet@gmail.com
|
| 142 |
+
π **Website:** [TechNTuts](https://techntuts.com/)
|