()
| 15 | |
| 16 | |
| 17 | def 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 | |
| 30 | def main(args): |
no outgoing calls
no test coverage detected
searching dependent graphs…