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

Function paper_identity

experiments/baselines/discourse_aware/runner.py:260–268  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

258
259
260def paper_identity(row: Dict[str, Any]) -> str:
261 explicit_identity = str(row.get("paper_identity") or "").strip()
262 if explicit_identity:
263 return explicit_identity
264 for key in ("paper_id", "doi", "arxiv_id", "url"):
265 value = str(row.get(key) or "").strip().casefold()
266 if value:
267 return f"{key}:{value}"
268 return "title:" + normalize_phrase_text(row.get("title"))
269
270
271def build_idf_from_texts(texts: Sequence[Any]) -> Dict[str, float]:

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