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

Function paper_identity

experiments/baselines/knowledge_entity/runner.py:215–223  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

213
214
215def paper_identity(row: Dict[str, Any]) -> str:
216 explicit_identity = str(row.get("paper_identity") or "").strip()
217 if explicit_identity:
218 return explicit_identity
219 for key in ("paper_id", "doi", "arxiv_id", "url"):
220 value = str(row.get(key) or "").strip().casefold()
221 if value:
222 return f"{key}:{value}"
223 return "title:" + normalize_phrase_text(row.get("title"))
224
225
226def 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