#!/usr/bin/python3 # -*- coding: utf-8 -*- from datasets import load_dataset, DownloadMode from tqdm import tqdm dataset = load_dataset( "language_identification.py", name="amazon_reviews_multi", split="train", # streaming=True, cache_dir=None, download_mode=DownloadMode.FORCE_REDOWNLOAD ) for sample in tqdm(dataset): print(sample) if __name__ == '__main__': pass