mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
make to sure pass in **cfg to each component when training
This commit is contained in:
parent
4046823699
commit
f4a7d1a423
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user