()
| 903 | |
| 904 | |
| 905 | def main() -> None: |
| 906 | args = parse_args() |
| 907 | input_dir = Path(args.input_dir) |
| 908 | output_dir = Path(args.output_dir) if args.output_dir else input_dir / "main_experiment" / METHOD_KEY |
| 909 | result = run_baseline( |
| 910 | input_dir=input_dir, |
| 911 | output_dir=output_dir, |
| 912 | roles_file=Path(args.roles_file), |
| 913 | top_k=args.top_k, |
| 914 | background_negatives_per_day=args.background_negatives_per_day, |
| 915 | ) |
| 916 | summary = result["evaluation"]["summary"] |
| 917 | print(json.dumps(summary, ensure_ascii=False, indent=2)) |
| 918 | print(f"\nScholar Inbox outputs written to: {output_dir}") |
| 919 | |
| 920 | |
| 921 | if __name__ == "__main__": |
no test coverage detected