From 53d37da29a5103300a561be7ca8547a5ddcbedc3 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 26 Jul 2020 15:11:24 +0200 Subject: [PATCH] Make sure @factories is removed from config --- spacy/language.py | 1 + 1 file changed, 1 insertion(+) 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]