MCPcopy
hub / github.com/explosion/spaCy / from_dict

Function from_dict

spacy/util.py:1414–1423  ·  view source on GitHub ↗
(
    msg: Dict[str, Any],
    setters: Dict[str, Callable[[Any], Any]],
    exclude: Iterable[str],
)

Source from the content-addressed store, hash-verified

1412
1413
1414def from_dict(
1415 msg: Dict[str, Any],
1416 setters: Dict[str, Callable[[Any], Any]],
1417 exclude: Iterable[str],
1418) -> Dict[str, Any]:
1419 for key, setter in setters.items():
1420 # Split to support file names like meta.json
1421 if key.split(".")[0] not in exclude and key in msg:
1422 setter(msg[key])
1423 return msg
1424
1425
1426def to_disk(

Callers 1

from_bytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…