mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-25 00:34:20 +03:00
Make sure @factories is removed from config
This commit is contained in:
parent
ac5901d076
commit
53d37da29a
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user