diff --git a/spacy/language.py b/spacy/language.py index 93d239356..4567fe57b 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -532,6 +532,7 @@ class Language: resolved, filled = registry.resolve(cfg, validate=validate, overrides=overrides) filled = filled[factory_name] filled["factory"] = factory_name + filled.pop("@factories", None) self._pipe_configs[name] = filled return resolved[factory_name]