MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _token_set

Function _token_set

dataflow_agent/utils_paper_visuals.py:155–156  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

153
154
155def _token_set(text: str) -> set[str]:
156 return {token for token in re.findall(r"[a-zA-Z0-9_\-]{4,}", text.lower()) if token}
157
158
159def _best_catalog_match(page: Dict[str, Any], catalog: Sequence[Dict[str, Any]], used_refs: set[str]) -> str:

Callers 1

_best_catalog_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected