()
| 261 | |
| 262 | |
| 263 | def main() -> None: |
| 264 | args = parse_args() |
| 265 | benchmark_dir = Path(args.benchmark_dir) |
| 266 | output_dir = Path(args.output_dir) if args.output_dir else benchmark_dir / "evaluation" / "model_human_eval" |
| 267 | users = common.load_users(benchmark_dir / "users.json") |
| 268 | specs = parse_model_specs(args.model) if args.model else default_model_specs(Path(args.packages_dir), benchmark_dir) |
| 269 | blind_rows, key_rows = build_rows( |
| 270 | specs, |
| 271 | users, |
| 272 | reports_per_model=args.reports_per_model, |
| 273 | seed=args.seed, |
| 274 | abstract_chars=args.abstract_chars, |
| 275 | report_chars=args.report_chars, |
| 276 | ) |
| 277 | write_csv(output_dir / "model_human_eval_blind.csv", blind_rows) |
| 278 | write_csv(output_dir / "model_human_eval_key.csv", key_rows) |
| 279 | write_guidelines(output_dir / "model_human_eval_guidelines.md") |
| 280 | print(f"Blind packet: {output_dir / 'model_human_eval_blind.csv'}") |
| 281 | print(f"Internal key: {output_dir / 'model_human_eval_key.csv'}") |
| 282 | print(f"Rows exported: {len(blind_rows)}") |
| 283 | |
| 284 | |
| 285 | if __name__ == "__main__": |
no test coverage detected