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

Function _label_rank

agents/reading-agent/main.py:853–860  ·  view source on GitHub ↗
(label: str)

Source from the content-addressed store, hash-verified

851
852def _label_rank(label: str) -> int:
853 mapping = {
854 "按需阅读": 0,
855 "值得快速浏览": 1,
856 "推荐阅读": 2,
857 "强烈推荐": 3,
858 }
859 return mapping.get(_clean_text(label), 1)
860
861
862def _rank_label(rank: int) -> str:
863 labels = ["按需阅读", "值得快速浏览", "推荐阅读", "强烈推荐"]

Callers 1

Calls 2

getMethod · 0.80
_clean_textFunction · 0.70

Tested by

no test coverage detected