MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / categorize_paper

Function categorize_paper

deployments/feishu/daily-push-agent/main.py:1533–1545  ·  view source on GitHub ↗

Backward-compatible coarse categorization.

(score: float, paper: Dict, profile: Dict, weights: Dict)

Source from the content-addressed store, hash-verified

1531 ):
1532 paper_with_score.category = "maybe_interested"
1533 filtered.append(paper_with_score)
1534 continue
1535
1536 if paper_with_score.score >= threshold_edge:
1537 paper_with_score.category = "edge_relevant"
1538 filtered.append(paper_with_score)
1539 continue
1540
1541 print(
1542 f" Filtered out (score={paper_with_score.score:.2f}): "
1543 f"{str(paper_with_score.paper.get('title', '') or '').strip()}"
1544 )
1545
1546 return filtered
1547
1548

Callers 1

sort_and_categorizeFunction · 0.85

Calls 2

is_must_readFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected