From edfea3a513349ca575d77c62ab1b708030542823 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 17 May 2017 14:59:37 +0200 Subject: [PATCH] Fix progress bar --- spacy/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/train.py b/spacy/train.py index 1f5e5250c..b62cfeb99 100644 --- a/spacy/train.py +++ b/spacy/train.py @@ -47,7 +47,7 @@ class Trainer(object): golds = self.make_golds(docs, paragraph_tuples) all_docs.extend(docs) all_golds.extend(golds) - for batch in tqdm.tqdm(partition_all(12, zip(all_docs, all_golds))): + for batch in partition_all(12, zip(tqdm.tqdm(all_docs), all_golds)): X, y = zip(*batch) yield X, y