Datasets:
streaming load
#8
by xu-song - opened
Is it possible to read some lines of cc100 without downloading the whole file?
xu-song changed discussion title from Is it possible to read some lines of cc100 without downloading the whole file? to load in streaming mode
xu-song changed discussion title from load in streaming mode to streaming load
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
xu-song changed discussion status to closed