from datasets import load_dataset # load dataset dataset = load_dataset("text", data_dir="textfiles/")