MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / main

Function main

experiments/baselines/nl_profile/runner.py:678–694  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676
677
678def main() -> None:
679 args = parse_args()
680 input_dir = Path(args.input_dir)
681 output_dir = (
682 Path(args.output_dir)
683 if args.output_dir
684 else input_dir.parent / "main_experiment" / METHOD_KEY
685 )
686 result = run_baseline(
687 input_dir=input_dir,
688 output_dir=output_dir,
689 roles_file=Path(args.roles_file),
690 top_k=args.top_k,
691 )
692 summary = result["evaluation"]["summary"]
693 print(json.dumps(summary, ensure_ascii=False, indent=2))
694 print(f"\nNatural-Language User Profile outputs written to: {output_dir}")
695
696
697if __name__ == "__main__":

Callers 7

run_nl_profile.pyFile · 0.90
runner.pyFile · 0.70

Calls 2

parse_argsFunction · 0.70
run_baselineFunction · 0.70

Tested by

no test coverage detected