streaming load

#8
by eson - opened

Is it possible to read some lines of cc100 without downloading the whole file?

eson changed discussion title from Is it possible to read some lines of cc100 without downloading the whole file? to load in streaming mode
eson changed discussion title from load in streaming mode to streaming load
Datasets Maintainers org

Yes, you can stream the dataset (all the information is in our docs: https://huggingface.co/docs/datasets/stream) by passing streaming=True to load_dataset:

ds = load_dataset("cc100", "en", split="train", streaming=True)
item = next(iter(ds))

You can also use the viewer for direct inspection: https://huggingface.co/datasets/cc100/viewer/en

thanks

eson changed discussion status to closed

Sign up or log in to comment