()
| 7 | |
| 8 | |
| 9 | def parse_args(): |
| 10 | args = argparse.ArgumentParser() |
| 11 | args.add_argument('--res_file', type=str, required=True, help="result file in jsonl.") |
| 12 | args.add_argument('--react', action="store_true", help="if using react_batch_demo.py, set True.") |
| 13 | |
| 14 | args = args.parse_args() |
| 15 | return args |
| 16 | |
| 17 | |
| 18 | def eval_jsonl(res_file: str, react: bool = False) -> float: |