Kaludi/BDA594-fake-news-classification
Text Classification
•
Updated
•
13
Error code: DatasetGenerationError Exception: ArrowNotImplementedError Message: Cannot write struct type '_format_kwargs' with no child field to Parquet. Consider adding a dummy child field. Traceback: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single writer.write_table(table) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 583, in write_table self._build_writer(inferred_schema=pa_table.schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer self.pa_writer = self._WRITER_CLASS(self.stream, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__ self.writer = _parquet.ParquetWriter( File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__ File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Cannot write struct type '_format_kwargs' with no child field to Parquet. Consider adding a dummy child field. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2027, in _prepare_split_single num_examples, num_bytes = writer.finalize() File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 602, in finalize self._build_writer(self.schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer self.pa_writer = self._WRITER_CLASS(self.stream, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__ self.writer = _parquet.ParquetWriter( File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__ File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Cannot write struct type '_format_kwargs' with no child field to Parquet. Consider adding a dummy child field. 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 1529, 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 1154, in convert_to_parquet builder.download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare self._download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, 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 1882, 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 2038, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset
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.
_data_files
list | _fingerprint
string | _format_columns
sequence | _format_kwargs
dict | _format_type
null | _output_all_columns
bool | _split
null |
---|---|---|---|---|---|---|
[
{
"filename": "data-00000-of-00001.arrow"
}
] | d55702aba2d510ca | [
"target",
"text"
] | {} | null | false | null |
This dataset has been processed for project BDA594-fake-news-classification model.
A sample from this dataset looks as follows:
[
{
"text": "MOSCOW\u2014Warning President Volodymyr Zelensky think carefully repercussions changing country\u2019s college football conference alignment, Russian president Vladimir Putin reportedly vowed retaliation Friday Ukraine ever become member Big Ten. \u201cThere absolutely reason Ukraine needs join Big Ten outside provoking Russia, move apply membership met harshest consequences,\u201d said Putin, pointing Ukraine\u2019s position neutral firewall countries long served geographical buffer Russia Big Ten members like Indiana University Rutgers. \u201cAny move even increase number games Ukraine Big Ten schools considered act aggression Russian state met proportionate force. universities stoking hostility Russia decades, caution Ukraine indulge thirst power. Frankly, Zelensky\u2019s good. know University Michigan cofounded Big Ten years ago vehicle nefarious interests NCAA Division sports, urge Ukraine become puppet [University Michigan athletic director] Alan Haller prolonged proxy season Big Ten schools Russia.\u201d press time, tensions rising Russia pulled ambassador Penn State. Watch Biden Asks Americans Come Sit Keep Company End CC Share Subtitles English Share Video Facebook Twitter Email Reddit Link view video Biden Asks Americans Come Sit Keep Company End Week's Viral News: September 22, 2023 Friday 2:58PM Study Finds LSD Highly Effective Ruining Nephew\u2019s Baptism Thursday 10:44AM",
"target": 0
},
{
"text": "Coast Guard searching 35yearold man fell overboard Carnival cruise ship near Florida Monday, according statement . man passenger Carnival Magic cruise ship, 186 miles east Jacksonville fell water. Security footage shows leaned railing room balcony fell water around 4:10 a.m. Monday, cruise corporation said statement. reported missing companion late Monday afternoon. Officials released identifying information man age. cruise ship released Coast Guard search rescue efforts continue way Norfolk, Virginia, scheduled arrive Tuesday. \"The Carnival Care Team providing support guest\u2019s companion traveling party board,\" Carnival said. Coast Guard using air water assets search passenger.",
"target": 1
}
]
The dataset has the following fields (also called "features"):
{
"text": "Value(dtype='string', id=None)",
"target": "ClassLabel(names=['fake', 'real'], id=None)"
}
This dataset is split into a train and validation split. The split sizes are as follow:
Split name | Num samples |
---|---|
train | 508 |
valid | 128 |