| 783 | |
| 784 | |
| 785 | def parse_args() -> argparse.Namespace: |
| 786 | parser = argparse.ArgumentParser(description="Run the Citation-Enhanced main-experiment baseline.") |
| 787 | parser.add_argument("--input-dir", required=True, help="Clean baseline input directory.") |
| 788 | parser.add_argument( |
| 789 | "--output-dir", |
| 790 | default=None, |
| 791 | help="Output directory. Defaults to <input-dir>/../main_experiment/citation_enhanced.", |
| 792 | ) |
| 793 | parser.add_argument( |
| 794 | "--roles-file", |
| 795 | default=str(PROJECT_ROOT / "data" / "roles.json"), |
| 796 | help="Initial role/profile metadata used for cold-start construction.", |
| 797 | ) |
| 798 | parser.add_argument("--top-k", type=int, default=DEFAULT_TOP_K, help="Number of papers shown per episode.") |
| 799 | return parser.parse_args() |
| 800 | |
| 801 | |
| 802 | def main() -> None: |