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

Function extract_id_set

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

Source from the content-addressed store, hash-verified

192
193
194def extract_id_set(row: Dict[str, Any], fields: Sequence[str]) -> set[str]:
195 values: set[str] = set()
196 for field_name in fields:
197 for item in parse_string_list(row.get(field_name)):
198 normalized = normalize_id(item)
199 if normalized:
200 values.add(normalized)
201 return values
202
203
204def citation_count(row: Dict[str, Any]) -> Optional[float]:

Callers 2

update_selectedMethod · 0.85
citation_relation_scoreFunction · 0.85

Calls 3

normalize_idFunction · 0.85
getMethod · 0.80
parse_string_listFunction · 0.70

Tested by

no test coverage detected