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

Function jaccard

experiments/baselines/citation_enhanced/runner.py:297–300  ·  view source on GitHub ↗
(left: set[str], right: set[str])

Source from the content-addressed store, hash-verified

295
296
297def jaccard(left: set[str], right: set[str]) -> float:
298 if not left or not right:
299 return 0.0
300 return len(left & right) / len(left | right)
301
302
303def load_roles(roles_file: Path) -> Dict[str, Dict[str, Any]]:

Callers 1

citation_relation_scoreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected