owenarink/attentiontypes-commonsense
Text Classification • 7.81M • Updated • 7
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 4 new columns ({'FalseSent', 'OptionB', 'OptionA', 'OptionC'}) and 1 missing columns ({'answer'}).
This happened while the csv dataset builder was generating data using
hf://datasets/owenarink/kaggle-commonsense/train_data.csv (at revision 5dd895bcf2d47ab52a5952f44548c787b047a418), [/tmp/hf-datasets-cache/medium/datasets/47368469329365-config-parquet-and-info-owenarink-kaggle-commonse-2c244ebc/hub/datasets--owenarink--kaggle-commonsense/snapshots/5dd895bcf2d47ab52a5952f44548c787b047a418/train_answers.csv (origin=hf://datasets/owenarink/kaggle-commonsense@5dd895bcf2d47ab52a5952f44548c787b047a418/train_answers.csv), /tmp/hf-datasets-cache/medium/datasets/47368469329365-config-parquet-and-info-owenarink-kaggle-commonse-2c244ebc/hub/datasets--owenarink--kaggle-commonsense/snapshots/5dd895bcf2d47ab52a5952f44548c787b047a418/train_data.csv (origin=hf://datasets/owenarink/kaggle-commonsense@5dd895bcf2d47ab52a5952f44548c787b047a418/train_data.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1890, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 760, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
id: string
FalseSent: string
OptionA: string
OptionB: string
OptionC: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 826
to
{'id': Value('string'), 'answer': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, 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 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1892, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 4 new columns ({'FalseSent', 'OptionB', 'OptionA', 'OptionC'}) and 1 missing columns ({'answer'}).
This happened while the csv dataset builder was generating data using
hf://datasets/owenarink/kaggle-commonsense/train_data.csv (at revision 5dd895bcf2d47ab52a5952f44548c787b047a418), [/tmp/hf-datasets-cache/medium/datasets/47368469329365-config-parquet-and-info-owenarink-kaggle-commonse-2c244ebc/hub/datasets--owenarink--kaggle-commonsense/snapshots/5dd895bcf2d47ab52a5952f44548c787b047a418/train_answers.csv (origin=hf://datasets/owenarink/kaggle-commonsense@5dd895bcf2d47ab52a5952f44548c787b047a418/train_answers.csv), /tmp/hf-datasets-cache/medium/datasets/47368469329365-config-parquet-and-info-owenarink-kaggle-commonse-2c244ebc/hub/datasets--owenarink--kaggle-commonsense/snapshots/5dd895bcf2d47ab52a5952f44548c787b047a418/train_data.csv (origin=hf://datasets/owenarink/kaggle-commonsense@5dd895bcf2d47ab52a5952f44548c787b047a418/train_data.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
id string | answer string |
|---|---|
sentence_1 | C |
sentence_2 | B |
sentence_3 | C |
sentence_4 | B |
sentence_5 | C |
sentence_6 | B |
sentence_7 | A |
sentence_8 | B |
sentence_9 | C |
sentence_10 | B |
sentence_11 | C |
sentence_12 | C |
sentence_13 | B |
sentence_14 | B |
sentence_15 | C |
sentence_16 | A |
sentence_17 | B |
sentence_18 | A |
sentence_19 | A |
sentence_20 | B |
sentence_21 | B |
sentence_22 | B |
sentence_23 | C |
sentence_24 | C |
sentence_25 | A |
sentence_26 | B |
sentence_27 | A |
sentence_28 | C |
sentence_29 | B |
sentence_30 | C |
sentence_31 | C |
sentence_32 | A |
sentence_33 | C |
sentence_34 | C |
sentence_35 | C |
sentence_36 | A |
sentence_37 | A |
sentence_38 | B |
sentence_39 | A |
sentence_40 | B |
sentence_41 | C |
sentence_42 | B |
sentence_43 | C |
sentence_44 | C |
sentence_45 | B |
sentence_46 | B |
sentence_47 | A |
sentence_48 | A |
sentence_49 | C |
sentence_50 | B |
sentence_51 | A |
sentence_52 | B |
sentence_53 | C |
sentence_54 | B |
sentence_55 | A |
sentence_56 | A |
sentence_57 | C |
sentence_58 | B |
sentence_59 | A |
sentence_60 | B |
sentence_61 | B |
sentence_62 | C |
sentence_63 | A |
sentence_64 | B |
sentence_65 | B |
sentence_66 | B |
sentence_67 | A |
sentence_68 | A |
sentence_69 | A |
sentence_70 | C |
sentence_71 | C |
sentence_72 | C |
sentence_73 | A |
sentence_74 | C |
sentence_75 | B |
sentence_76 | B |
sentence_77 | C |
sentence_78 | A |
sentence_79 | A |
sentence_80 | A |
sentence_81 | A |
sentence_82 | B |
sentence_83 | A |
sentence_84 | A |
sentence_85 | C |
sentence_86 | C |
sentence_87 | A |
sentence_88 | A |
sentence_89 | A |
sentence_90 | C |
sentence_91 | B |
sentence_92 | A |
sentence_93 | C |
sentence_94 | A |
sentence_95 | C |
sentence_96 | B |
sentence_97 | C |
sentence_98 | C |
sentence_99 | A |
sentence_100 | A |
This dataset contains the course-project data used in the kaggle_commonsense repository for commonsense reasoning with multiple-choice repairs.
Each example contains:
idFalseSentOptionA, OptionB, and OptionCFor training, the correct answer label is provided in train_answers.csv.
train_data.csv: training inputstrain_answers.csv: training labelstest_data.csv: test inputssample.csv: sample submission formatThe task is to select the correct answer (A, B, or C) that best repairs the false sentence.
Example:
The sun rises in the west.The sun rises in the east.The sun sets in the west.The sun shines at night.Correct answer: A
This is a task-specific academic dataset from a course competition setup. It should not be treated as a broadly standardized benchmark.