MCPcopy
hub / github.com/LAION-AI/Open-Assistant / main

Function main

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

Source from the content-addressed store, hash-verified

500
501
502def main(args):
503 data = read_data(args)
504 augmenter = get_augmenter(args)
505
506 augmented_data = augmenter.parse(data)
507
508 # write augmented data as json file
509 with open(args.output, "w") as f:
510 json.dump(augmented_data, f)
511
512
513if __name__ == "__main__":

Callers 1

data_augment.pyFile · 0.70

Calls 3

read_dataFunction · 0.85
get_augmenterFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected