from datasets import load_dataset from itertools import islice import sys dataset = load_dataset("./proof-pile.py", "arxiv") print('ARXIV') print(dataset) """ dataset = load_dataset("./proof-pile.py", "books") print("BOOKS") print(dataset) for x in dataset["train"]: print(x["text"]) sys.exit() dataset = load_dataset("./proof-pile.py", "formal") print("FORMAL") print(dataset) dataset = load_dataset("./proof-pile.py", "stack-exchange") print("STACK EXCHANGE") for x in dataset["train"]: print(x) break print(dataset) dataset = load_dataset("./proof-pile.py", "wiki") print("WIKI") print(dataset) dataset = load_dataset("./proof-pile.py", "math-dataset", download_mode='force_redownload') print("MATH DATASET") print(dataset) """