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

Function get_parser

utils/json2trn.py:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def get_parser():
18 parser = argparse.ArgumentParser(
19 description="convert a json to a transcription file with a token dictionary",
20 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
21 )
22 parser.add_argument("json", type=str, help="json files")
23 parser.add_argument("dict", type=str, help="dict")
24 parser.add_argument("--num-spkrs", type=int, default=1, help="number of speakers")
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 return parser
28
29
30def 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…