()
| 143 | |
| 144 | |
| 145 | def main() -> None: |
| 146 | args = parse_args() |
| 147 | pairs = read_scores(Path(args.input_csv), args.auto_column, args.human_column) |
| 148 | if len(pairs) < 3: |
| 149 | raise SystemExit("Need at least 3 paired scores for correlation analysis.") |
| 150 | result = build_result(pairs, args.bootstrap, args.seed) |
| 151 | print(json.dumps(result, ensure_ascii=False, indent=2)) |
| 152 | if args.output_json: |
| 153 | Path(args.output_json).write_text(json.dumps(result, ensure_ascii=False, indent=2), encoding="utf-8") |
| 154 | if args.output_md: |
| 155 | write_markdown(Path(args.output_md), result) |
| 156 | |
| 157 | |
| 158 | if __name__ == "__main__": |
no test coverage detected