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

Function paper_identity

experiments/baselines/citation_enhanced/runner.py:170–178  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

168
169
170def paper_identity(row: Dict[str, Any]) -> str:
171 explicit_identity = str(row.get("paper_identity") or "").strip()
172 if explicit_identity:
173 return explicit_identity
174 for key in ("paper_id", "doi", "arxiv_id", "openalex_id", "semantic_scholar_id", "url"):
175 value = str(row.get(key) or "").strip().casefold()
176 if value:
177 return f"{key}:{value}"
178 return "title:" + normalize_phrase_text(row.get("title"))
179
180
181def identity_aliases(row: Dict[str, Any]) -> set[str]:

Callers 3

identity_aliasesFunction · 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