()
| 69 | |
| 70 | |
| 71 | def parse_args(): |
| 72 | parser = argparse.ArgumentParser(description='File Converter') |
| 73 | parser.add_argument('--mode', |
| 74 | default='json', |
| 75 | help='The mode of convert to json or convert to csv') |
| 76 | parser.add_argument('--jsonl', |
| 77 | default='./data_release.jsonl', |
| 78 | help='The original jsonl path') |
| 79 | parser.add_argument('--json', |
| 80 | default='./alignment_bench.json', |
| 81 | help='The results json path') |
| 82 | parser.add_argument('--exp-folder', help='The results json name') |
| 83 | args = parser.parse_args() |
| 84 | return args |
| 85 | |
| 86 | |
| 87 | if __name__ == '__main__': |
no outgoing calls
no test coverage detected