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

Function _rank_label

agents/reading-agent/main.py:863–865  ·  view source on GitHub ↗
(rank: int)

Source from the content-addressed store, hash-verified

861
862def _rank_label(rank: int) -> str:
863 labels = ["按需阅读", "值得快速浏览", "推荐阅读", "强烈推荐"]
864 return labels[max(0, min(int(rank), len(labels) - 1))]
865
866
867def calibrate_recommendation_label(paper: Dict[str, Any], proposed_label: Any, analysis_source: Any = None) -> str:
868 """Constrain reading-report recommendation labels to ranking/evaluation evidence."""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected