mirror of https://github.com/explosion/spaCy.git
batch_by_words by default
This commit is contained in:
parent
93e50da46a
commit
1b20ffac38
|
@ -307,7 +307,7 @@ def create_train_batches(nlp, corpus, cfg):
|
||||||
if len(train_examples) == 0:
|
if len(train_examples) == 0:
|
||||||
raise ValueError(Errors.E988)
|
raise ValueError(Errors.E988)
|
||||||
epoch += 1
|
epoch += 1
|
||||||
if cfg.get("batch_by_words"):
|
if cfg.get("batch_by_words", True):
|
||||||
batches = util.minibatch_by_words(
|
batches = util.minibatch_by_words(
|
||||||
train_examples,
|
train_examples,
|
||||||
size=cfg["batch_size"],
|
size=cfg["batch_size"],
|
||||||
|
|
Loading…
Reference in New Issue