Dataset doesn't load using load_dataset
ValueError: Couldn't cast
dataset: string
encounter_id: string
dialogue: string
note: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 721
to
{'ID': Value(dtype='int64', id=None), 'section_header': Value(dtype='string', id=None), 'section_text': Value(dtype='string', id=None), 'dialogue': Value(dtype='string', id=None)}
because column names don't match
The above exception was the direct cause of the following exception:
DatasetGenerationError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)
1956 if isinstance(e, SchemaInferenceError) and e.context is not None:
1957 e = e.context
-> 1958 raise DatasetGenerationError("An error occurred while generating the dataset") from e
1959
1960 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)
DatasetGenerationError: An error occurred while generating the dataset
any help would be much appreciated
Hi nvbAI,
You can download these .csv from the 'files and versions' tag directly. I don't think I implemented the 'load_dataset' function.
Best regards
Thanks