Skip to content

Commit

Permalink
Fix import + old python compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kowaalczyk committed Apr 4, 2019
1 parent f71bdaa commit 3082e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion spacy/cli/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import plac
from timeit import default_timer as timer
from wasabi import Printer
import srsly

from ..gold import GoldCorpus
from .. import util
Expand Down
4 changes: 2 additions & 2 deletions spacy/cli/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ def train(
iter_since_best = 0
best_score = current_score
if iter_since_best >= early_stopping_iter:
msg.text(f"Early stopping, best iteration is: {i-iter_since_best}")
msg.text(f"Best score = {best_score}; Final iteration score = {current_score}")
msg.text("Early stopping, best iteration is: {}".format(i-iter_since_best))
msg.text("Best score = {}; Final iteration score = {}".format(best_score, current_score))
break
finally:
with nlp.use_params(optimizer.averages):
Expand Down

0 comments on commit 3082e6c

Please sign in to comment.