MCPcopy Create free account
hub / github.com/Ljyustc/SocraticLM / get_args

Function get_args

codes/data_preprocess.py:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5from argparse import ArgumentParser
6
7def get_args():
8 parser = ArgumentParser(description='Data preprocess')
9 parser.add_argument('--path', type=str, default='data', help='Path to the SocraTeach dataset')
10 parser.add_argument('--split_fold', type=str, default='data/data_split', help='Folder path to save the split train/valid/test subsets')
11 args = parser.parse_args()
12 return args
13args = get_args()
14os.makedirs(args.split_fold, exist_ok=True)
15

Callers 1

data_preprocess.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected