The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
indices: uint64
-- schema metadata --
huggingface: '{"info": {"features": {"indices": {"dtype": "uint64", "_typ' + 50
to
{'labels': List(Value('int64')), '__index_level_0__': Value('int64'), 'input_ids': List(Value('int32')), 'attention_mask': List(Value('int8')), 'cls_embedding': List(Value('float32'))}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1815, in _prepare_split_single
for _, table in generator:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/arrow/arrow.py", line 76, in _generate_tables
yield f"{file_idx}_{batch_idx}", self._cast_table(pa_table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/arrow/arrow.py", line 59, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
indices: uint64
-- schema metadata --
huggingface: '{"info": {"features": {"indices": {"dtype": "uint64", "_typ' + 50
to
{'labels': List(Value('int64')), '__index_level_0__': Value('int64'), 'input_ids': List(Value('int32')), 'attention_mask': List(Value('int8')), 'cls_embedding': List(Value('float32'))}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1456, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1055, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
labels list | __index_level_0__ int64 | input_ids list | attention_mask list | cls_embedding list |
|---|---|---|---|---|
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 65,844 | [
101,
6719,
7249,
1012,
2045,
1005,
1055,
2498,
2926,
16060,
2319,
2055,
2151,
1997,
2023,
1012,
1045,
2657,
2035,
1997,
2023,
1999,
13847,
8040,
5644,
2378,
1012,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0.20306357741355896,
0.14850404858589172,
-0.14029666781425476,
-0.3459453880786896,
-0.16455844044685364,
-0.4177718758583069,
0.12991413474082947,
0.4157484769821167,
0.06166741997003555,
-0.136701300740242,
-0.15036162734031677,
-0.0895787701010704,
-0.35093072056770325,
0.4057862758636... |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | 54,522 | [
101,
1031,
2171,
1033,
1998,
1031,
2171,
1033,
2089,
2022,
6428,
1010,
2021,
1031,
2171,
1033,
2074,
2908,
5506,
1012,
2016,
1005,
1055,
2439,
1996,
5436,
2005,
2469,
1012,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
-0.030331600457429886,
-0.31750425696372986,
-0.01381637342274189,
-0.17886286973953247,
0.05203743651509285,
-0.05113992467522621,
0.22204482555389404,
0.2064695656299591,
-0.22031182050704956,
-0.14574043452739716,
0.050315652042627335,
-0.11303938180208206,
0.05521007254719734,
0.323409... |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | 48,835 | [
101,
20912,
1045,
1521,
1049,
6933,
29300,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
-0.13899661600589752,
0.05122306942939758,
0.22550566494464874,
-0.20032396912574768,
-0.20934240520000458,
0.03155246004462242,
0.3953149914741516,
0.279583215713501,
-0.3280084729194641,
-0.14511807262897491,
0.06892231851816177,
0.0732431635260582,
-0.19844043254852295,
0.19633953273296... |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | 154,996 | [
101,
2002,
2001,
3013,
7483,
1010,
6854,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0.010987522080540657,
-0.12468176335096359,
-0.07544533908367157,
-0.07378078252077103,
0.10308872908353806,
-0.10935060679912567,
0.0644417405128479,
0.336260586977005,
-0.16681122779846191,
-0.3212973475456238,
0.1617971956729889,
-0.11158468574285507,
-0.18296223878860474,
0.21250766515... |
[
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 93,016 | [
101,
3835,
1010,
1045,
2387,
2068,
2076,
1996,
9703,
1998,
2001,
3492,
7622,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0.1339123398065567,
-0.30551061034202576,
-0.10808438062667847,
0.011968215927481651,
0.012548820115625858,
-0.051573049277067184,
0.23192904889583588,
0.4860815405845642,
0.04769551753997803,
-0.2650136351585388,
0.31776508688926697,
0.04482410475611687,
0.236525297164917,
0.3114204406738... |
[
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 163,613 | [
101,
6057,
2017,
3198,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
-0.12880875170230865,
-0.009229438379406929,
0.08385807275772095,
-0.16641728579998016,
-0.07409802824258804,
-0.05751863121986389,
0.2057187259197235,
0.37387222051620483,
-0.20613642036914825,
-0.19005244970321655,
0.07113409787416458,
-0.07515779137611389,
-0.06392309069633484,
0.209275... |
[
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | 175,184 | [
101,
15718,
1996,
8407,
1045,
7714,
2228,
2009,
1521,
1055,
2019,
8702,
2298,
1012,
2021,
1996,
8239,
8407,
10083,
2009,
2035,
1012,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0.3159998655319214,
0.1465655118227005,
0.0736677274107933,
-0.23892664909362793,
-0.13260962069034576,
-0.2113565057516098,
0.21036149561405182,
0.42553114891052246,
-0.0874466598033905,
-0.22148416936397552,
0.03199166804552078,
-0.03196626529097557,
-0.08294148743152618,
0.2405418604612... |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | 193,794 | [
101,
1031,
2171,
1033,
2003,
2385,
1998,
1031,
2171,
1033,
2003,
2539,
1012,
1012,
1012,
2021,
2016,
1005,
1055,
3504,
2385,
2004,
1031,
2171,
1033,
1014,
1012,
1014,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
-0.06018855422735214,
-0.32348716259002686,
0.09754905849695206,
-0.32976624369621277,
-0.08295299857854843,
-0.06528858840465546,
0.250946968793869,
0.40619808435440063,
-0.20459166169166565,
-0.24222974479198456,
-0.16724254190921783,
-0.04132840037345886,
-0.047071825712919235,
0.118933... |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | 108,780 | [
101,
1046,
1041,
1055,
1057,
1055,
1039,
1044,
1054,
1045,
1055,
1056,
2216,
2159,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
-0.04769831523299217,
0.0899568647146225,
-0.060971274971961975,
-0.21690167486667633,
-0.1681520938873291,
0.08738570660352707,
0.5340515375137329,
0.4629291892051697,
-0.27950096130371094,
-0.26967713236808777,
-0.14041298627853394,
-0.080333411693573,
-0.17701393365859985,
0.42387267947... |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | 194,082 | [
101,
2026,
2540,
1012,
1012,
1012,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
-0.02078978344798088,
-0.09050771594047546,
0.007513607852160931,
-0.2591978907585144,
-0.04462625831365585,
-0.24339114129543304,
0.2068953961133957,
0.3730868995189667,
0.025965703651309013,
-0.46632277965545654,
-0.07951892167329788,
-0.1856645941734314,
-0.20527566969394684,
0.45139467... |
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | 61,008 | [
101,
3100,
1010,
2288,
7507,
1012,
2515,
2115,
2564,
2031,
1037,
2843,
1997,
6911,
1998,
10089,
2013,
2014,
3105,
1010,
2030,
2074,
1999,
2236,
1029,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0.024948110803961754,
0.09119206666946411,
-0.09549924731254578,
-0.19730520248413086,
0.12576474249362946,
-0.1822359561920166,
0.1467532515525818,
0.45476341247558594,
-0.14718903601169586,
-0.3572029173374176,
0.3214327394962311,
-0.08185406029224396,
-0.08234304934740067,
0.13416582345... |
π MoodPulse: Processed Data and Embeddings for Emotion Analysis
MoodPulse provides a self-contained dataset repository for use with the AffectiveLens projectβan end-to-end NLP pipeline for emotion detection in text. It includes the full processing stack from raw text to final DistilBERT-based sentence embeddings, allowing researchers to bypass time-consuming preprocessing and directly train or benchmark models.
π§Ύ Dataset Description
This dataset builds upon the original GoEmotions dataset by Google Research, which includes 58k carefully curated Reddit comments labeled with 28 fine-grained emotions.
In MoodPulse, these labels are condensed into three mutually exclusive emotion classes:
- Positive
- Neutral
- Negative
The dataset is structured to support every phase of the AffectiveLens pipeline:
- Raw CSVs
- Tokenized data in Hugging Face
datasetsformat - Precomputed
DistilBERTembeddings
This enables full reproduction of results without requiring re-tokenization or embedding computation.
ποΈ Dataset Structure
The dataset is organized into logical folders corresponding to different stages of processing:
/
βββ data/
β βββ full\_dataset/
β β βββ goemotions\_1.csv
β β βββ goemotions\_2.csv
β β βββ goemotions\_3.csv
β β
β βββ processed/
β β βββ GoEmotions\_Tokenized\_Train\_Pool/
β β βββ GoEmotions\_Tokenized\_Test/
β β
β βββ embeddings/
β βββ MentalTrain/
β βββ MentalTest/
π Folder Descriptions
data/full_dataset/
Original GoEmotions CSV files split into parts.data/processed/
Tokenized datasets using Hugging Facedatasetsformat, ready for embedding extraction.data/embeddings/
Final DistilBERT[CLS]token embeddings for the training and test sets. These are saved as Hugging Face datasets and ready for model input.
π How to Use
You can load the tokenized data or precomputed embeddings directly using the Hugging Face datasets library.
from datasets import load_dataset
# Define repository ID and folder to load
repo_id = "psyrishi/MoodPulse"
data_folder = "data/embeddings/MentalTrain" # or "data/embeddings/MentalTest"
# Load the dataset split
train_embeddings = load_dataset(repo_id, data_dir=data_folder, split='train')
print("Sample entry:")
print(train_embeddings[0])
# Access embeddings and labels
embedding_vector = train_embeddings[0]['cls_embedding']
label_vector = train_embeddings[0]['labels']
π‘ Tip: You can replace
data_dirto load the tokenized datasets instead, if desired.
π Use Cases
- Train or benchmark emotion classification models using high-quality, preprocessed embeddings.
- Compare performance of traditional ML models vs. transformer-based models.
- Build emotion-aware applications for mental health, customer feedback, or social media monitoring.
π Citation
This dataset is a processed derivative of the original GoEmotions dataset:
@inproceedings{demszky2020goemotions,
title={GoEmotions: A Dataset of Fine-Grained Emotions},
author={Demszky, Dorottya and Movshovitz-Attias, Dana and Ko, Jeongwoo and Cowen, Alan and Nemade, Gaurav and Ravi, Sujith},
booktitle={Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL)},
year={2020}
}
If you use MoodPulse in your work, please cite both the original GoEmotions authors and link back to this repository.
βοΈ Licensing
- Original data: Provided under the Creative Commons Attribution 4.0 International (CC BY 4.0) license by Google Research.
- Code and processing logic: Provided under the MIT License.
Please refer to the LICENSE file for full details.
π Acknowledgments
Special thanks to Google Research for the creation and open release of the GoEmotions dataset, and to the Hugging Face team for providing the open-source tools that made this processing pipeline possible.
π Related Projects
- GoEmotions Dataset (Google)
- AffectiveLens β Emotion detection pipeline built on top of this dataset.
- Downloads last month
- 93