From adca08a12fcd011df2d94e4701dfd193a6cbb5ea Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 29 Sep 2020 12:21:52 +0200 Subject: [PATCH] Pass nlp forward --- spacy/language.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 6c0a8394d..8ef2f1d61 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1218,11 +1218,7 @@ class Language: p_settings = validate_init_settings( proc.initialize, p_settings, section="components", name=name ) - proc.initialize( - get_examples, - pipeline=self.pipeline, - **p_settings, - ) + proc.initialize(get_examples, nlp=self, **p_settings) self._link_components() if sgd is not None: self._optimizer = sgd