This commit is contained in:
svlandeg 2021-02-12 14:30:16 +01:00
parent aa3ad8825d
commit 03b4ec7d7f

View File

@ -61,7 +61,7 @@ def test_issue7029():
for i in range(50):
losses = {}
nlp.update(train_examples, sgd=optimizer, losses=losses)
texts = ["first", "second", "thrid", "fourth", "and", "then", "some", ""]
texts = ["first", "second", "third", "fourth", "and", "then", "some", ""]
nlp.select_pipes(enable=["tok2vec", "tagger"])
docs1 = list(nlp.pipe(texts, batch_size=1))
docs2 = list(nlp.pipe(texts, batch_size=4))