Issues Loading Dataset
Hello, I run into an error when loading the dataset with the following command:
from datasets import load_dataset
dataset = load_dataset("sentence-transformers/embedding-training-data")
The error:
Repo card metadata block was not found. Setting CardData to empty.
Downloading data files: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 166.99it/s]
Extracting data files: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 23.48it/s]
Generating train split: 0 examples [00:00, ? examples/s]Failed to read file '/.cache/huggingface/datasets/downloads/extracted/f9b081036b71c97f3caa746d08fdcfe39bfcd0a0e051fbb484ba02b4eb59e564' with error <class
'pyarrow.lib.ArrowInvalid'>: JSON parse error: Column() changed from object to array in row 0
Generating train split: 0 examples [00:00, ? examples/s]
Traceback (most recent call last):
File "/future/u/jonsf/miniconda3/envs/long_context/lib/python3.10/site-packages/datasets/packaged_modules/json/json.py", line 144, in _generate_tables
dataset = json.load(f)
File "/future/u/jonsf/miniconda3/envs/long_context/lib/python3.10/json/init.py", line 293, in load
return loads(fp.read(),
File "/future/u/jonsf/miniconda3/envs/long_context/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/future/u/jonsf/miniconda3/envs/long_context/lib/python3.10/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 1582)
I am running the latest version of HF datasets. Please let me know if you need any additional information. Thank you!
Hello!
At this time, you must just download the repository files itself (or the full repository as a whole: git clone https://huggingface.co/datasets/sentence-transformers/embedding-training-data.
I intend to improve this in the future, so load_dataset works as expected, but I haven't gotten around to this yet.
- Tom Aarsen
As an update, all of these datasets are now separated into easy to use datasets: https://huggingface.co/collections/sentence-transformers/embedding-model-datasets-6644d7a3673a511914aa7552
- Tom Aarsen