Pass nlp forward

This commit is contained in:
Ines Montani 2020-09-29 12:21:52 +02:00
parent f171903139
commit adca08a12f
1 changed files with 1 additions and 5 deletions

View File

@ -1218,11 +1218,7 @@ class Language:
p_settings = validate_init_settings( p_settings = validate_init_settings(
proc.initialize, p_settings, section="components", name=name proc.initialize, p_settings, section="components", name=name
) )
proc.initialize( proc.initialize(get_examples, nlp=self, **p_settings)
get_examples,
pipeline=self.pipeline,
**p_settings,
)
self._link_components() self._link_components()
if sgd is not None: if sgd is not None:
self._optimizer = sgd self._optimizer = sgd