mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-31 03:03:17 +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'):
|
if hasattr(proc, 'begin_training'):
|
||||||
proc.begin_training(get_gold_tuples(),
|
proc.begin_training(get_gold_tuples(),
|
||||||
pipeline=self.pipeline,
|
pipeline=self.pipeline,
|
||||||
sgd=self._optimizer)
|
sgd=self._optimizer,
|
||||||
|
**cfg)
|
||||||
return self._optimizer
|
return self._optimizer
|
||||||
|
|
||||||
def evaluate(self, docs_golds, verbose=False):
|
def evaluate(self, docs_golds, verbose=False):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user