From 1b20ffac3814b111d76f95d1b08c72f4b770ce77 Mon Sep 17 00:00:00 2001 From: Matthw Honnibal Date: Wed, 8 Jul 2020 21:37:06 +0200 Subject: [PATCH] batch_by_words by default --- spacy/cli/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index 398b72952..bda3c9ca2 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -307,7 +307,7 @@ def create_train_batches(nlp, corpus, cfg): if len(train_examples) == 0: raise ValueError(Errors.E988) epoch += 1 - if cfg.get("batch_by_words"): + if cfg.get("batch_by_words", True): batches = util.minibatch_by_words( train_examples, size=cfg["batch_size"],