import os from datasets import load_dataset def main(): data_dirs = [ "./bindingdb_filtered", "./CATS", "./HSP9", "./leakypdb", "./Mpro", ] for data_dir in data_dirs: print(data_dir) dataset = load_dataset("csv", data_files=os.path.join(data_dir, "data.csv"), delimiter=",") print(dataset) print("Saving to disk...") dataset.save_to_disk(data_dir) if __name__ == "__main__": main()