Loading dataset in chunks

#3
by m-newhauser - opened

I'm trying to load the dataset but it keeps crashing my kernel, even when I try to load just 10 rows of the dataset:

from datasets import load_dataset

dataset = load_dataset("allenai/peS2o", "v2", split="train[:10]")

Do you have any suggestions for loading the dataset in chunks? Or is there a way to only read in a single feature, such as the id column?

Sign up or log in to comment