BALM-benchmark / convert_csv_to_hf_dataset.py
aryopg's picture
BALM benchmarks
af8d6bf verified
raw
history blame
481 Bytes
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()