MCPcopy Create free account
hub / github.com/JetBrains-Research/code2seq / configure_arg_parser

Function configure_arg_parser

code2seq/code2seq_wrapper.py:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def configure_arg_parser() -> ArgumentParser:
16 arg_parser = ArgumentParser()
17 arg_parser.add_argument("mode", help="Mode to run script", choices=["train", "test"])
18 arg_parser.add_argument("-c", "--config", help="Path to YAML configuration file", type=str)
19 return arg_parser
20
21
22def train_code2seq(config: DictConfig):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected