为冷启动解析论文
(pdf_path: str)
| 644 | |
| 645 | |
| 646 | def parse_paper_for_coldstart(pdf_path: str) -> Dict: |
| 647 | """为冷启动解析论文""" |
| 648 | result = parse_pdf(pdf_path) |
| 649 | |
| 650 | return { |
| 651 | "research_directions": result["inferred_directions"], |
| 652 | "methodology_preferences": result["methodology_preferences"], |
| 653 | "inferred_topics": result.get("inferred_topics", []), |
| 654 | "title": result["title"], |
| 655 | "authors": result["authors"], |
| 656 | "abstract": result["abstract"], |
| 657 | "full_text": result["full_text"], |
| 658 | } |
| 659 | |
| 660 | |
| 661 | def emit_json(data: Dict[str, Any]) -> None: |
no test coverage detected