Backward-compatible coarse categorization.
(score: float, paper: Dict, profile: Dict, weights: Dict)
| 1531 | |
| 1532 | |
| 1533 | def categorize_paper(score: float, paper: Dict, profile: Dict, weights: Dict) -> str: |
| 1534 | """Backward-compatible coarse categorization.""" |
| 1535 | threshold_high = weights.get("threshold_high_relevant", 0.75) |
| 1536 | threshold_maybe = weights.get("threshold_maybe_interested", 0.50) |
| 1537 | threshold_edge = weights.get("threshold_edge_relevant", 0.15) |
| 1538 | |
| 1539 | if is_must_read(paper, profile) and score >= threshold_edge: |
| 1540 | return "must_read" |
| 1541 | if score >= threshold_high: |
| 1542 | return "high_relevant" |
| 1543 | if score >= threshold_maybe: |
| 1544 | return "maybe_interested" |
| 1545 | return "edge_relevant" |
| 1546 | |
| 1547 | |
| 1548 | def apply_push_count_limit(scored_papers: List[PaperWithScore], weights: Dict) -> List[PaperWithScore]: |
no test coverage detected