MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / add_parser

Function add_parser

rat-sql-gap/seq2struct/commands/eval.py:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7from seq2struct.utils import evaluation
8
9def add_parser():
10 parser = argparse.ArgumentParser()
11 parser.add_argument('--config', required=True)
12 parser.add_argument('--config-args')
13 parser.add_argument('--section', required=True)
14 parser.add_argument('--inferred', required=True)
15 parser.add_argument('--output')
16 parser.add_argument('--logdir')
17 args = parser.parse_args()
18 return args
19
20def main(args):
21 real_logdir, metrics = evaluation.compute_metrics(args.config, args.config_args, args.section, args.inferred, args.logdir)

Callers 1

eval.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected