(paper: Dict[str, Any])
| 3513 | |
| 3514 | def _recommendation_label(paper: Dict[str, Any]) -> str: |
| 3515 | category = _clean_text(paper.get("category")).lower() |
| 3516 | score = float(paper.get("score") or 0.0) |
| 3517 | |
| 3518 | if category == "must_read" or score >= 0.85: |
| 3519 | return "强烈推荐" |
| 3520 | if category == "high_relevant" or score >= 0.70: |
| 3521 | return "推荐阅读" |
| 3522 | if category == "maybe_interested" or score >= 0.50: |
| 3523 | return "值得快速浏览" |
| 3524 | return "按需阅读" |
| 3525 | |
| 3526 | |
| 3527 | def _build_relevance_points( |
| 3528 | paper: Dict[str, Any], |
no test coverage detected