mirror of https://github.com/explosion/spaCy.git
Fix logger
This commit is contained in:
parent
bcd52e5486
commit
84ae197dd6
|
@ -77,7 +77,7 @@ def train(
|
|||
log_step, finalize_logger = train_logger(nlp, stdout, stderr)
|
||||
try:
|
||||
for batch, info, is_best_checkpoint in training_step_iterator:
|
||||
log_step(info if is_best_checkpoint else None)
|
||||
log_step(info if is_best_checkpoint is not None else None)
|
||||
if is_best_checkpoint is not None and output_path is not None:
|
||||
with nlp.select_pipes(disable=frozen_components):
|
||||
update_meta(T, nlp, info)
|
||||
|
|
Loading…
Reference in New Issue