Datasets:
FileNotFoundError when trying to download
#1
by
AngledLuffa
- opened
If I do the following, I get a FileNotFoundError
. Is it expected to be able to download & use conll2003 directly?
from datasets import load_dataset
load_dataset("conll2003")
Downloading and preparing dataset conll2003/conll2003 (download: 4.63 MiB, generated: 9.78 MiB, post-processed: Unknown size, total: 14.41 MiB) to /home/john/.cache/huggingface/datasets/conll2003/conll2003/1.0.0/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6...
...
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/datasets/load.py", line 1699, in load_dataset
use_auth_token=use_auth_token,
File "/usr/local/lib/python3.6/site-packages/datasets/builder.py", line 596, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/usr/local/lib/python3.6/site-packages/datasets/builder.py", line 661, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/john/.cache/huggingface/modules/datasets_modules/datasets/conll2003/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6/conll2003.py", line 196, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/usr/local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 308, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/usr/local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 197, in download
download_func, url_or_urls, map_tuple=True, num_proc=download_config.num_proc, disable_tqdm=False
File "/usr/local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 263, in map_nested
for obj in utils.tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 263, in <listcomp>
for obj in utils.tqdm(iterable, disable=disable_tqdm)
File "/usr/local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 309, in cached_path
ignore_url_params=download_config.ignore_url_params,
File "/usr/local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt
Thanks!
datasets-2.2.2 has a fixed URL. Whichever version I was using (it was ancient) did not.
AngledLuffa
changed discussion status to
closed
Leaving this "discussion" here in case someone else arrives at the same place and finds it helpful.