Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
100K<n<1M
Language Creators:
found
Annotations Creators:
found
Source Datasets:
extended|gigaword_2003
ArXiv:
Tags:
headline-generation
License:

Dataset Viewer issue: StreamingRowsError

#4
by nanyy1025 - opened

The dataset viewer is not working.

Error details:

Error code:   StreamingRowsError
Exception:    ValueError
Message:      Cannot seek streaming HTTP file
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 263, in get_rows_or_raise
                  return get_rows(
                File "/src/services/worker/src/worker/utils.py", line 201, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 224, in get_rows
                  ds = load_dataset(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 2542, in load_dataset
                  return builder_instance.as_streaming_dataset(split=split)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1382, in as_streaming_dataset
                  splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)}
                File "/tmp/modules-cache/datasets_modules/datasets/gigaword/ea83a8b819190acac5f2dae011fad51dccf269a0604ec5dd24795b64efb424b6/gigaword.py", line 84, in _split_generators
                  dl_path = dl_manager.download_and_extract(_URL)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 1081, in download_and_extract
                  return self.extract(self.download(url_or_urls))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 1033, in extract
                  urlpaths = map_nested(self._extract, url_or_urls, map_tuple=True)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 459, in map_nested
                  return function(data_struct)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 1038, in _extract
                  protocol = _get_extraction_protocol(urlpath, download_config=self.download_config)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 400, in _get_extraction_protocol
                  return _get_extraction_protocol_with_magic_number(f)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 374, in _get_extraction_protocol_with_magic_number
                  f.seek(0)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/fsspec/implementations/http.py", line 759, in seek
                  raise ValueError("Cannot seek streaming HTTP file")
              ValueError: Cannot seek streaming HTTP file

cc @albertvillanova @lhoestq @severo .

Datasets Maintainers org
edited Jan 29

Thanks for reporting, @nanyy1025 .

The source data of this dataset is hosted on Google Drive, and this is raising the HTTP error: https://huggingface.co/datasets/gigaword/blob/85823cbed44273432b31e2a9ba0bd2350297e2e1/gigaword.py#L59

I am investigating if the license allows us to host the data on the Hugging Face Hub instead, so that we fix the issue.

Datasets Maintainers org

Fixed by #5.

albertvillanova changed discussion status to closed

Sign up or log in to comment