mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-21 14:02:47 +03:00
Call resume_training for base model in train CLI
This commit is contained in:
parent
3edb297649
commit
4fb31adde5
|
@ -285,7 +285,7 @@ def train(
|
|||
|
||||
if base_model and not pipes_added:
|
||||
# Start with an existing model, use default optimizer
|
||||
optimizer = create_default_optimizer(Model.ops)
|
||||
optimizer = nlp.resume_training(device=use_gpu)
|
||||
else:
|
||||
# Start with a blank model, call begin_training
|
||||
cfg = {"device": use_gpu}
|
||||
|
|
Loading…
Reference in New Issue
Block a user