(candidate_ids: List[str])
| 3780 | block: List[str] = [] |
| 3781 | index += 1 |
| 3782 | while index < len(lines) and not lines[index].startswith("## ") and not lines[index].startswith("# "): |
| 3783 | block.append(lines[index].strip()) |
| 3784 | index += 1 |
| 3785 | methods: List[str] = [] |
| 3786 | frontier = "" |
| 3787 | concept = current_topic |
| 3788 | for item in block: |
| 3789 | if item.startswith("- 概念:"): |
| 3790 | concept = item.split(":", 1)[1].strip() or concept |
| 3791 | elif item.startswith("- 方法:"): |
| 3792 | raw_methods = item.split(":", 1)[1].strip() |
| 3793 | if raw_methods and raw_methods != "待从后续精读中沉淀": |
| 3794 | methods = [part.strip() for part in re.split(r"[,,、]+", raw_methods) if part.strip()] |
| 3795 | elif item.startswith("- 画像/前沿:"): |
| 3796 | frontier = item.split(":", 1)[1].strip() |
| 3797 | summaries[current_topic] = { |
| 3798 | "concept": concept, |
| 3799 | "methods": methods, |
| 3800 | "frontier": frontier, |
| 3801 | } |
| 3802 | continue |
no test coverage detected