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

Function paper_identity

experiments/baselines/nl_profile/runner.py:153–161  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

151
152
153def paper_identity(row: Dict[str, Any]) -> str:
154 explicit_identity = str(row.get("paper_identity") or "").strip()
155 if explicit_identity:
156 return explicit_identity
157 for key in ("paper_id", "doi", "arxiv_id", "url"):
158 value = str(row.get(key) or "").strip().casefold()
159 if value:
160 return f"{key}:{value}"
161 return "title:" + normalize_phrase_text(row.get("title"))
162
163
164def 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