MCPcopy Index your code
hub / github.com/LAION-AI/Open-Assistant / read_data

Function read_data

scripts/data_augment/data_augment.py:460–469  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

458
459
460def read_data(args):
461 files = pd.read_csv(args.dataset, sep=",", header=None, names=["file"])
462 files = files["file"].tolist()
463 data = []
464 for file in files:
465 with open(file, "r") as f:
466 text = f.read()
467 data.append(text)
468
469 return data
470
471
472def get_augmenter(args):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected