mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-04 11:25:51 +03:00
Format
This commit is contained in:
parent
9753484b94
commit
77a08591ad
|
@ -2419,10 +2419,16 @@ def _get_instantiated_vocab(
|
||||||
|
|
||||||
|
|
||||||
def _find_missing_components(
|
def _find_missing_components(
|
||||||
pipeline: Dict[str, Dict[str, Any]], pipe_instances: Dict[str, Any], exclude: Iterable[str]
|
pipeline: Dict[str, Dict[str, Any]],
|
||||||
|
pipe_instances: Dict[str, Any],
|
||||||
|
exclude: Iterable[str],
|
||||||
) -> List[str]:
|
) -> List[str]:
|
||||||
missing = []
|
missing = []
|
||||||
for name, config in pipeline.items():
|
for name, config in pipeline.items():
|
||||||
if config.get("factory") == INSTANCE_FACTORY_NAME and name not in pipe_instances and name not in exclude:
|
if (
|
||||||
|
config.get("factory") == INSTANCE_FACTORY_NAME
|
||||||
|
and name not in pipe_instances
|
||||||
|
and name not in exclude
|
||||||
|
):
|
||||||
missing.append(name)
|
missing.append(name)
|
||||||
return missing
|
return missing
|
||||||
|
|
Loading…
Reference in New Issue
Block a user