make to sure pass in **cfg to each component when training

This commit is contained in:
Motoki Wu 2018-01-30 18:29:54 -08:00
parent 4046823699
commit f4a7d1a423

View File

@ -461,7 +461,8 @@ class Language(object):
if hasattr(proc, 'begin_training'):
proc.begin_training(get_gold_tuples(),
pipeline=self.pipeline,
sgd=self._optimizer)
sgd=self._optimizer,
**cfg)
return self._optimizer
def evaluate(self, docs_golds, verbose=False):