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

Function _recommendation_score

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

Source from the content-addressed store, hash-verified

828
829
830def _recommendation_score(label: str) -> int:
831 normalized = _clean_text(label)
832 mapping = {
833 "强烈推荐": 5,
834 "推荐阅读": 4,
835 "值得快速浏览": 3,
836 "按需阅读": 2,
837 }
838 return mapping.get(normalized, 3)
839
840
841def _recommendation_display_label(label: str, response_language: str = "zh") -> str:

Callers 1

generate_reading_reportFunction · 0.85

Calls 2

getMethod · 0.80
_clean_textFunction · 0.70

Tested by

no test coverage detected