| 14 | |
| 15 | |
| 16 | def parse_args(): |
| 17 | parser = argparse.ArgumentParser( |
| 18 | description='Collect Humanevalx dataset predictions.') |
| 19 | parser.add_argument('config', help='Config file path') |
| 20 | parser.add_argument('-r', |
| 21 | '--reuse', |
| 22 | nargs='?', |
| 23 | type=str, |
| 24 | const='latest', |
| 25 | help='Reuse previous outputs & results, and run any ' |
| 26 | 'missing jobs presented in the config. If its ' |
| 27 | 'argument is not specified, the latest results in ' |
| 28 | 'the work_dir will be reused. The argument should ' |
| 29 | 'also be a specific timestamp, e.g. 20230516_144254'), |
| 30 | args = parser.parse_args() |
| 31 | return args |
| 32 | |
| 33 | |
| 34 | _LANGUAGE_NAME_DICT = { |