Cannot load dataset
I cannot seem to load the dataset:
bible = load_dataset("atenglens/taiwanese_english_translation")
Here is the full stack trace:
FileNotFoundError 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, split_info, check_duplicate_keys, job_id)
1725 _time = time.time()
-> 1726 for key, record in generator:
1727 if max_shard_size is not None and writer._num_bytes > max_shard_size:
9 frames
~/.cache/huggingface/modules/datasets_modules/datasets/atenglens--taiwanese_english_translation/32561f509f5831d715edf71176c7b8f06ba20e846f4793fa064cca61b411d5dd/taiwanese_english_translation.py in _generate_examples(self, file_path)
150 """This function returns the examples in the raw (text) form."""
--> 151 with open(file_path, encoding="utf-8") as f:
152 csv_reader = csv.reader(f, delimiter=',')
/usr/local/lib/python3.10/dist-packages/datasets/streaming.py in wrapper(*args, **kwargs)
74 def wrapper(*args, **kwargs):
---> 75 return function(*args, download_config=download_config, **kwargs)
76
/usr/local/lib/python3.10/dist-packages/datasets/download/streaming_download_manager.py in xopen(file, mode, download_config, *args, **kwargs)
506 kwargs.pop("block_size", None)
--> 507 return open(main_hop, mode, *args, **kwargs)
508 # add headers and cookies for authentication on the HF Hub and for Google Drive
FileNotFoundError: [Errno 2] No such file or directory: 'train.csv'
The above exception was the direct cause of the following exception:
DatasetGenerationError Traceback (most recent call last)
in <cell line: 2>()
1 # read in translations
----> 2 bible = load_dataset("atenglens/taiwanese_english_translation")
/usr/local/lib/python3.10/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision, token, use_auth_token, task, streaming, num_proc, storage_options, trust_remote_code, **config_kwargs)
2580
2581 # Download and prepare data
-> 2582 builder_instance.download_and_prepare(
2583 download_config=download_config,
2584 download_mode=download_mode,
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in download_and_prepare(self, output_dir, download_config, download_mode, verification_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)
1003 if num_proc is not None:
1004 prepare_split_kwargs["num_proc"] = num_proc
-> 1005 self._download_and_prepare(
1006 dl_manager=dl_manager,
1007 verification_mode=verification_mode,
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs)
1765
1766 def _download_and_prepare(self, dl_manager, verification_mode, **prepare_splits_kwargs):
-> 1767 super()._download_and_prepare(
1768 dl_manager,
1769 verification_mode,
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verification_mode, **prepare_split_kwargs)
1098 try:
1099 # Prepare split will record examples associated to the split
-> 1100 self._prepare_split(split_generator, **prepare_split_kwargs)
1101 except OSError as e:
1102 raise OSError(
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)
1603 job_id = 0
1604 with pbar:
-> 1605 for job_id, done, content in self._prepare_split_single(
1606 gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
1607 ):
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id)
1760 if isinstance(e, SchemaInferenceError) and e.context is not None:
1761 e = e.context
-> 1762 raise DatasetGenerationError("An error occurred while generating the dataset") from e
1763
1764 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)
DatasetGenerationError: An error occurred while generating the dataset
Generating train split:
0/0 [00:00<?, ? examples/s]