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

Function paper_identity

experiments/baselines/scinup_strict/runner.py:148–156  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

146
147
148def paper_identity(row: Dict[str, Any]) -> str:
149 explicit_identity = str(row.get("paper_identity") or "").strip()
150 if explicit_identity:
151 return explicit_identity
152 for key in ("paper_id", "doi", "arxiv_id", "url"):
153 value = str(row.get(key) or "").strip().casefold()
154 if value:
155 return f"{key}:{value}"
156 return "title:" + normalize_phrase_text(row.get("title"))
157
158
159def label_key(row: Dict[str, Any]) -> Tuple[str, str]:

Callers 2

label_keyFunction · 0.70
rerank_episodesFunction · 0.70

Calls 2

getMethod · 0.80
normalize_phrase_textFunction · 0.70

Tested by

no test coverage detected