from tqdm import tqdm | |
from datasets import load_dataset | |
dataset = load_dataset("wiki_sentences.py", split='train', streaming=True) | |
rows = [] | |
for i, row in tqdm(enumerate(dataset)): | |
rows.append(row) | |
if i > 10: | |
break | |
print('DATA') | |
print('') | |
for row in rows: | |
print(row) | |