()
| 6 | import os |
| 7 | |
| 8 | def parse_args(): |
| 9 | parser = argparse.ArgumentParser(description='Compute accuracy') |
| 10 | parser.add_argument('--ref_path', type=str, default='config.yaml', help='config file path') |
| 11 | parser.add_argument('--hyp_path', type=str, default='model.pth', help='model file path') |
| 12 | parser.add_argument('--output_path', type=str, default='data', help='data file path') |
| 13 | |
| 14 | args = parser.parse_args() |
| 15 | return args |
| 16 | |
| 17 | def do_get_first_tag_from_str(input_str, upper=True): |
| 18 | """ |