`streaming=True` cause error

#1
by penut85420 - opened

Reproduction Steps:

ds = load_dataset("hplt_monolingual_v1_2", "ky", trust_remote_code=True, streaming=True)
# FileNotFoundError: [Errno 2] No such file or directory: '/path/to/cwd/https:/data.hplt-project.org/one/monotext/ky_map.txt'

The issue is located at: https://huggingface.co/datasets/HPLT/hplt_monolingual_v1_2/blob/main/hplt_monolingual_v1_2.py#L161

The method dl_manager.download(url) returns only the original URL when streaming=True. Is it possible to support streaming?

Unfortunately I do not think that a data loading script is easily compatible with streaming. I agree though that it'd be better if we can get the data fully hosted on HF rather than relying on the data loading scripts.

I will upload the dataset as full files in the coming week.

Sign up or log in to comment