← Datasets

Compare

Emotion
#157 · remove
swallowcode2
#154 · remove
swallowmath2
#153 · remove
Kinddatasetdatasetdataset
Published—20252025
Licenseotherapache-2.0apache-2.0
License familyOtherPermissivePermissive
Accessfreefreefree
Language codesenenen
Modalitiestexttexttext
Size100K to 1M rows100M to 1B rows10M to 100M rows
Downloads (last month)32,2155,6388,875
Likes4655035
Last updated2024-08-082025-11-082025-11-06
Taskstext-classificationtext-generationtext-generation
Formatsparquetjsonjson
ScaleHub/datasets-server: unsplit train 416,809 / 2 columns / 26,888,538 bytes parquet (~26.9 MB) / in-memory 47,139,430 (~47.1 MB); split train 16,000 + validation 2,000 + test 2,000 = 20,000 / parquet 1,287,193 (~1.29 MB) / in-memory 2,223,504 (~2.22 MB). datasets-server concat-across-2-configs 436,809 — do not concat; split is the 20k benchmark vs unsplit the full distant-supervision dump. usedStorage 462,785,045 bytes (~462.8 MB) vs on-disk parquet 28,175,731 (~28.2 MB) — catalog both (likely LFS history). YAML size_categories 10K<n<100K vs tags 100K<n<1M — catalog Hub unsplit 416,809, not YAML 10K. siblings 6 (README + gitattributes + 4 parquet). Hub overview 833.9K downloads / 454 likes at check; API downloads 17,100. gated=false; private=false. Card stale “downloaded 16.13 MB / generated 47.62 MB / disk 63.75 MB” vs current parquet ~28.2 MB — catalog Hub parquet.Card: 49.8B Llama-3 tokens (v1 was 16.1B). usedStorage 5,194,499,027,449 bytes (~5.19 TB / 4.72 TiB) for all pipeline stages on Hub. Default SwallowCode-v2 = stage5-auto-format/python/medium: 150 jsonl (train_0001–0160 with gaps 0050, 0055, 0115–0122); most ~7.0–7.2 GB, a tail of ~2.2–4.7 GB shards. datasets-server estimated_num_rows 146,711,936 across configs (partial viewer). stage4-llm-rewrite estimated 19,588,324 rows (stage5 is the ruff-formatted medium rewrite of that set; stage5/swallowcode-v2 size endpoints failed). YAML size_categories 10M<n<100M vs Hub tag 100M<n<1B (multi-config). gated=false. Hub 11,154 downloads / 44 likes at check.Card: 32.0B Llama-3 tokens (v1 was 3.6B). Final stage3: Q&A 12,635,739 samples / 13.6B tokens + textbook 13,302,336 / 18.3B = 25,938,075 samples / 32.0B. ≈1,076 tok/Q&A sample and ≈1,376 tok/textbook sample. usedStorage 1,039,319,176,792 bytes (~1.039 TB / 0.945 TiB) for all pipeline stages on Hub. YAML size_categories 10M<n<100M. 115 Q&A jsonl (~65–395 MB; most ~380–390 MB) + 93 textbook jsonl (~133–790 MB; most ~780 MB). Stage1 128 jsonl (~1.0 GB each); stage2 126 jsonl (~2.4–2.5 GB). Hub 7,247 downloads / 33 likes at check. gated=false. Source FineMath-3+: 21,405,610 docs / 34B tokens (HuggingFaceTB/finemath).
FormatParquet under split/ (train/validation/test one file each) and unsplit/train-00000-of-00001.parquet. Columns: text (string), label (ClassLabel sadness/joy/love/anger/fear/surprise). Two YAML configs: split (default) and unsplit. Hub loading script replaced by parquet.jsonl per pipeline stage (stage1-auto-format … stage5-auto-format). Default config swallowcode-v2 points at stage5 python medium train*.jsonl per pipeline stage (stage1-length-filter, stage2-extract-math-text, stage3-qa, stage3-textbook, stage3-ablations/{qa,textbook,planning,socratic-method,multiple-solution}). Official configs swallow-math-v2-qa and swallow-math-v2-textbook.
TypeAnnotated tweet-classification corpus / text + 6-way ClassLabelPretraining corpus / rewritten Python codePretraining corpus / rewritten math web (Q&A + textbook)
CostFreeFreeFree
LanguagesEnglish 100% (card language:en / monolingual). Preview tweets are lowercased English. Per-language percents N/A. Not independently LID-ed here.Python source (card language:en). Comments mixed; rewriter is English-oriented. Python-only released (13-language plan dropped for GPU cost). Leftover stage1/c jsonl shards exist but are not the v2 release.English 100% (card language:en). Source FineMath-3+ is English math-edu web. Rewrites are English Markdown/LaTeX. Card bias note: English-only. No LID table.
ModalityText-only tweets + integer labels. Hub modality:text. No media URLs as extra n.Text (Python source)Text + LaTeX (Markdown; optional Python snippets in Q&A examples)
DomainTwitter; emotion classification; affect / CARER; English social-media textPython code pretraining; LLM-rewritten Stack-v2mathematical pretraining; LLM-rewritten FineMath; textbook and Q&A math
Time periodPaper EMNLP 2018 (Oct–Nov 2018; ACL D18-1404). Source tweets from Twitter hashtag distant supervision (exact crawl window Unknown from the Hub card). HF createdAt 2022-03-02T23:29:22Z; lastModified 2024-08-08T06:10:47Z. Frozen parquet conversion of the original datasets-library script, not a live Twitter crawl.HF createdAt 2025-10-20; lastModified 2025-11-08. Paper 2025-05-05 (arXiv 2505.02881) describes v1 (16.1B, Llama 3.3 license); this Hub dump is the Apache v2 rewrite. Discord posted 2025-11-17. Source The-Stack-v2 (Software Heritage GitHub; older). Rewriter Qwen3-235B-A22B-Instruct-2507.HF createdAt 2025-10-19; lastModified 2025-11-06. Paper 2025-05-05 (arXiv 2505.02881) describes v1 (FineMath-4+ / Llama-3.3 license); this Hub dump is the Apache v2 rewrite. Discord posted 2025-11-17. Source FineMath-3+ (Common Crawl math-edu; HuggingFaceTB/finemath). Rewriter Qwen3-235B-A22B (card: Instruct-2507; shard filenames: Thinking-2507-FP8).
PurposeUngated English CARER emotion-tweet dump (6 ClassLabels) for emotion-classification finetune and Hub train-eval-index evalPublic 49.8B-token Apache-2.0 rewritten Python corpus for code pre-training, vs gated The-Stack-v2 and metadata-only Nemotron-Pretraining-Code-v1Public 32B-token Apache-2.0 rewritten math corpus for math pre-training / mid-training, vs NVIDIA Open Data Nemotron-CC-Math-v1-4+ and Llama-licensed SwallowMath-v1
Used forSaravia et al. CARER (EMNLP 2018). Hub train-eval-index accuracy / F1 / precision / recall. Common HF tutorial split. Hub overview 833.9K downloads / 454 likes at check; API downloads 17,100. Distinct from already-cataloged TweetEval emotion (SemEval-2018 Task 1, not this CARER 416k). Do not concat TweetEval as extra n.Llama-3.1-8B 50B-token continual pretrain: +20.7 HumanEval / +21.9 HumanEval+ pass@1 vs Stack-Edu (card). Paper v1 CPT +17.0 / +17.7 vs Stack-Edu. Hub 11,154 downloads / 44 likes at check. GitHub rioyokotalab/swallow-code-math 31 stars. Tokyo Tech Swallow checkpoints.Tokyo Tech Swallow CPT (card: stronger GSM-Plus and BBH vs other open math dumps; Q&A slightly below Nemotron-CC-Math-v1-4+ on MATH). Sister SwallowCode-v2 already in this catalog. Hub 7,247 downloads / 33 likes at check.
AuthorsTwitter users (human tweets). Labels from hashtag distant supervision (card annotations_creators: machine-generated). Paper authors Elvis Saravia, Hsien-Chi Toby Liu, Yen-Hao Huang, Junlin Wu, Yi-Shin Chen. Hub packager dair-ai; datasets-library contributors lhoestq / thomwolf / lewtun. Unique-author histogram Unknown (no user ids on Hub).Original snippets: GitHub via The-Stack-v2. Rewrites: Qwen3-235B-A22B-Instruct. Quality scorer: SeedCoder prompt. Tokyo Tech (Kazuki Fujii, Yukito Tajima, Masaki Kawamura, Naoaki Okazaki, Rio Yokota et al.).Original pages: FineMath-3+ / Common Crawl math-edu authors. Stage-2 extract: Qwen3-32B-FP8. Stage-3 rewrite: Qwen3-235B-A22B-2507 (card Instruct; filenames Thinking-FP8). Tokyo Tech (Kazuki Fujii, Yukito Tajima, Masaki Kawamura, Naoaki Okazaki, Rio Yokota et al.).
BiasTwitter public-API era; English; joy-heavy (unsplit joy 141,067 / sadness 121,187 / anger 57,317 / fear 47,712 / love 34,554 / surprise 14,972 of 416,809). Distant-supervision hashtag priors (users who hashtag emotions ≠ general Twitter). Distinct from already-cataloged TweetEval emotion — possible topical overlap of Twitter affect; do not add those n.Python-only. Ablation: rewriting Medium-quality SeedCoder-scored seeds beat High-quality on HumanEval (authors hypothesize simpler, problem-like files match the bench). Qwen3 rewrite style can uniformize code. Upstream The-Stack-v2 GitHub popularity/permissive-license skew remains. Instruct rewriter used (Thinking model similar quality, higher GPU). 1-stage rewrite adopted over v1’s 2-stage (similar downstream, ~2× cheaper).English FineMath-3+ math-edu web (classifier-selected explanations/worked problems, not research papers). Card: possible algebra-vs-geometry over-representation. Dual-style release (Q&A vs textbook) is the main format lever; ablations (planning/Socratic/multiple-solution) are not the 32B mix. Qwen3 rewrite style can uniformize explanations. Length filter drops over-long FineMath pages. Instruct vs Thinking rewriter is a card/filename mismatch.
Text qualityHashtag-stripped lowercased tweets. Independently inspected split/train 0–4: coherent English tweets (didnt feel humiliated / hopeless-to-hopeful / greedy wrong / nostalgic fireplace / grouchy) with labels sadness/sadness/anger/love/anger matching the classic CARER 20k examples. Residual: unsplit text max 830 chars (above historical 140/280); card Languages/PII/biases “More Information Needed”; annotations_creators machine-generated so labels are hashtag-derived not expert. Not independently re-pulled from Twitter/X here (API now closed).Five-stage transform-and-retain: ruff auto-format → length filter → SeedCoder 0–10 score → Qwen3-235B rewrite for clarity/structure → final ruff. Contrasts filter-only Stack-Edu. Residual LLM rewrite errors, over-simplification, and leftover tmp_*.jsonl under stage3/high. Do not train on stage1/c or unreleased language dirs.LLM rewrite to restore context, strip boilerplate, and reformat as step-by-step Q&A or textbook Markdown+LaTeX. Card: Q&A wins GSM8K/GSM-Plus; textbook wins BBH; both help MATH. Ablation: rewriter scale (Qwen3-30B-A3B vs 235B) did not move downstream much — prompt/style dominate. Residual teacher errors and FineMath web noise. Do not train on stage1/stage2 or stage3-ablations as if they were the 32B release.
Sample sizeDo not concat the 2 configs as extra unique n beyond unsplit 416,809. split 16,000/2,000/2,000. unsplit single train 416,809. split/train label mix joy 5,362 / sadness 4,666 / anger 2,159 / fear 1,937 / love 1,304 / surprise 572 of 16,000. Do not add TweetEval emotion as extra n of this card.Default swallowcode-v2 / stage5-auto-format: python medium train* (150 shards; ~20M estimated from stage4). Also configs stage1-auto-format, stage2-length-filter (high), stage3-llm-score (high+medium YAML; server currently exposes medium), stage4-llm-rewrite. No val/test. Sister tokyotech-llm/swallow-math-v2 is a separate repo.Two official train-only configs: swallow-math-v2-qa 12,635,739; swallow-math-v2-textbook 13,302,336. No val/test. Q&A shards 115/128 (gaps 34, 36–37, 43–46, 61–66); textbook shards 93/128 (gaps 33–34, 36–37, 43–46, 51–76, 94). stage3-ablations holds Qwen3-30B-A3B style trials, not the 32B mix. Sister tokyotech-llm/swallow-code-v2 is a separate repo.
Long contextNo (tweets). datasets-server split/train text chars mean 96.8 / median 86 / min 7 / max 300; unsplit mean 97.0 / median 86 / min 2 / max 830. Exact token histogram Unknown without aggregating.Mixed (length-filtered; stage2 longer_samples dir exists). Typical files are medium code snippets, not repo-scale documents.Mixed (length-filtered; Q&A ~1.1k Llama-3 tok/sample, textbook ~1.4k). Not book-length documents.
Intermediate stepsYes (Twitter hashtag distant supervision; drop hashtags; 20k train/val/test split vs full 416k). Exact hashtag inventory and subsample recipe Unknown from the Hub card (see Saravia et al. EMNLP 2018). Independent of X Corp except as the original tweet source.Yes (The-Stack-v2 Python → ruff → length filter → SeedCoder score → Qwen3 1-stage rewrite → ruff). Intermediate stages 1–4 are on Hub. Code/prompts: github.com/rioyokotalab/swallow-code-math.Yes (FineMath-3+ → length filter → Qwen3-32B math extract → Qwen3-235B rewrite into Q&A and textbook; five-style ablation then keep the two best). Intermediates 1–2 and ablations are on Hub. Code/prompts: github.com/rioyokotalab/swallow-code-math. Paper arXiv 2505.02881.
Idea qualityHighHighHigh
NoveltyHigh (canonical public CARER Emotion dump vs already-cataloged TweetEval SemEval emotion; remaining dump leftover)High (public 49.8B Apache rewritten Stack-v2 Python with actual files, not metadata-only)High (32B Apache rewrite of FineMath-3+ with released style ablations; public alternative to Nemotron-CC-Math)
Text conversionReady parquet; load_dataset('dair-ai/emotion') for the 20k default split or load_dataset('dair-ai/emotion', 'unsplit'). ~1.29 MB split / ~26.9 MB unsplit. Viewer works. Do not concat split+unsplit as extra unique tweets. Do not concat TweetEval as extra n.Ready jsonl. load_dataset("tokyotech-llm/swallow-code-v2", "swallowcode-v2") or config stage5-auto-format. Streaming required (multi-TB repo; stage5 alone is ~1 TB of jsonl).Ready jsonl. load_dataset("tokyotech-llm/swallow-math-v2", "swallow-math-v2-qa") or "swallow-math-v2-textbook". Streaming recommended (~1.04 TB repo; stage3 alone is ~100 GB of jsonl).
Collection methodDownloadDownloadDownload
StaticUnknown (HF lastModified 2024-08-08; frozen CARER dump, not a live crawl).Unknown (HF lastModified 2025-11-08; Python-only one-shot; authors mention a possible v3)Unknown (HF lastModified 2025-11-06; one-shot Apache v2; authors mention a possible v3 on the code sister card)
ProcessedUnknownUnknownUnknown
SummaryEmotion is a dataset of English Twitter messages with six basic emotions: anger, fear, joy, love, sadness, and surprise. For more detailed information please refer to the paper.[SwallowCode-v1](https://huggingface.co/datasets/tokyotech-llm/swallow-code) was a high-quality Python code dataset generated through an LLM-based rewriting pipeline.[SwallowMath-v2](https://huggingface.co/datasets/tokyotech-llm/swallow-math-v2) is a large-scale mathematical dataset containing **32 billion tokens**, developed as the successor to [SwallowMath-v1](https://huggingface.co/datasets/tokyotech-llm/swallow-math).