mirror of https://github.com/explosion/spaCy.git
Fix eval batch size
This commit is contained in:
parent
c5d12d1a22
commit
2fa56484b2
|
@ -337,9 +337,9 @@ def create_evaluation_callback(nlp, optimizer, corpus, cfg):
|
|||
|
||||
if optimizer.averages:
|
||||
with nlp.use_params(optimizer.averages):
|
||||
scorer = nlp.evaluate(dev_examples, batch_size=eval_batch_size)
|
||||
scorer = nlp.evaluate(dev_examples, batch_size=batch_size)
|
||||
else:
|
||||
scorer = nlp.evaluate(dev_examples, batch_size=eval_batch_size)
|
||||
scorer = nlp.evaluate(dev_examples, batch_size=batch_size)
|
||||
end_time = timer()
|
||||
wps = n_words / (end_time - start_time)
|
||||
scores = scorer.scores
|
||||
|
|
Loading…
Reference in New Issue