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

Function extract_entities

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

Source from the content-addressed store, hash-verified

349
350
351def extract_entities(row: Dict[str, Any]) -> List[str]:
352 entities = metadata_entities(row)
353 entities.extend(candidate_entity_phrases(f"{row.get('title') or ''}. {row.get('abstract') or ''}"))
354 return dedupe_strings(entities)
355
356
357def entities_text(entities: Sequence[str]) -> str:

Callers 3

update_selectedMethod · 0.85
rerank_episodesFunction · 0.85

Calls 4

metadata_entitiesFunction · 0.85
candidate_entity_phrasesFunction · 0.85
getMethod · 0.80
dedupe_stringsFunction · 0.70

Tested by

no test coverage detected