The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError Exception: TypeError Message: Couldn't cast array of type struct<source: string, id: string, filename: string, story: string, questions: list<item: struct<input_text: string, turn_id: int64, sae_input_text: string>>, answers: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64, dialect_input_text: string>>, additional_answers: struct<0: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64>>, 1: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64>>, 2: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64>>>, name: string, dialect_story: string> to {'source': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'filename': Value(dtype='string', id=None), 'story': Value(dtype='string', id=None), 'questions': [{'input_text': Value(dtype='string', id=None), 'turn_id': Value(dtype='int64', id=None), 'sae_input_text': Value(dtype='string', id=None), 'bad_turn': Value(dtype='string', id=None)}], 'answers': [{'span_start': Value(dtype='int64', id=None), 'span_end': Value(dtype='int64', id=None), 'span_text': Value(dtype='string', id=None), 'input_text': Value(dtype='string', id=None), 'turn_id': Value(dtype='int64', id=None), 'dialect_input_text': Value(dtype='string', id=None), 'bad_turn': Value(dtype='string', id=None)}], 'name': Value(dtype='string', id=None), 'dialect_story': Value(dtype='string', id=None)} 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 585, in write_table pa_table = table_cast(pa_table, self._schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast return cast_table_to_schema(table, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in cast_table_to_schema arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2025, in cast_array_to_feature casted_array_values = _c(array.values, feature[0]) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1804, in wrapper return func(array, *args, **kwargs) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2122, in cast_array_to_feature raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}") TypeError: Couldn't cast array of type struct<source: string, id: string, filename: string, story: string, questions: list<item: struct<input_text: string, turn_id: int64, sae_input_text: string>>, answers: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64, dialect_input_text: string>>, additional_answers: struct<0: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64>>, 1: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64>>, 2: list<item: struct<span_start: int64, span_end: int64, span_text: string, input_text: string, turn_id: int64>>>, name: string, dialect_story: string> to {'source': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'filename': Value(dtype='string', id=None), 'story': Value(dtype='string', id=None), 'questions': [{'input_text': Value(dtype='string', id=None), 'turn_id': Value(dtype='int64', id=None), 'sae_input_text': Value(dtype='string', id=None), 'bad_turn': Value(dtype='string', id=None)}], 'answers': [{'span_start': Value(dtype='int64', id=None), 'span_end': Value(dtype='int64', id=None), 'span_text': Value(dtype='string', id=None), 'input_text': Value(dtype='string', id=None), 'turn_id': Value(dtype='int64', id=None), 'dialect_input_text': Value(dtype='string', id=None), 'bad_turn': Value(dtype='string', id=None)}], 'name': Value(dtype='string', id=None), 'dialect_story': Value(dtype='string', id=None)} 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.
version
string | data
list |
---|---|
1.0 | [{"source":"wikipedia","id":"3zotghdk5ibi9cex97fepx7jetpso7","filename":"Vatican_Library.txt","story(...TRUNCATED) |