MCPcopy Create free account
hub / github.com/espnet/espnet / get_parser

Function get_parser

utils/json2trn_mt.py:18–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def get_parser():
19 parser = argparse.ArgumentParser(
20 description="convert json to machine translation transcription",
21 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
22 )
23 parser.add_argument("json", type=str, help="json files")
24 parser.add_argument("dict", type=str, help="dict for target language")
25 parser.add_argument("--refs", type=str, nargs="+", help="ref for all speakers")
26 parser.add_argument("--hyps", type=str, nargs="+", help="hyp for all outputs")
27 parser.add_argument("--srcs", type=str, nargs="+", help="src for all outputs")
28 parser.add_argument(
29 "--dict-src",
30 type=str,
31 help="dict for source language",
32 default=False,
33 nargs="?",
34 )
35 return parser
36
37
38def main(args):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…