File size: 290 Bytes
d65a7c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)