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

Function paper_identity

experiments/baselines/scholar_inbox/runner.py:173–181  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

171
172
173def paper_identity(row: Dict[str, Any]) -> str:
174 explicit_identity = str(row.get("paper_identity") or "").strip()
175 if explicit_identity:
176 return explicit_identity
177 for key in ("paper_id", "doi", "arxiv_id", "url"):
178 value = str(row.get(key) or "").strip().casefold()
179 if value:
180 return f"{key}:{value}"
181 return "title:" + normalize_phrase_text(row.get("title"))
182
183
184def build_idf(rows: Sequence[Dict[str, Any]]) -> Dict[str, float]:

Callers 4

stable_background_rowsFunction · 0.70
update_feedback_stateFunction · 0.70
label_keyFunction · 0.70
rerank_episodesFunction · 0.70

Calls 2

getMethod · 0.80
normalize_phrase_textFunction · 0.70

Tested by

no test coverage detected