From d976b336a04712c53109dc0b829047ab7656369b Mon Sep 17 00:00:00 2001 From: Santhosh18 Date: Wed, 2 Oct 2019 16:54:13 +0530 Subject: [PATCH] Fixed #2554 --- gensim/corpora/wikicorpus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gensim/corpora/wikicorpus.py b/gensim/corpora/wikicorpus.py index b7ad94083d..36f0daae75 100644 --- a/gensim/corpora/wikicorpus.py +++ b/gensim/corpora/wikicorpus.py @@ -700,7 +700,7 @@ def get_texts(self): logger.warn( "user terminated iteration over Wikipedia corpus after %i documents with %i positions " "(total %i articles, %i positions before pruning articles shorter than %i words)", - articles, positions, articles_all, positions_all, ARTICLE_MIN_WORDS + articles, positions, articles_all, positions_all, self.article_min_tokens ) except PicklingError as exc: raise_from(PicklingError('Can not send filtering function {} to multiprocessing, ' @@ -709,7 +709,7 @@ def get_texts(self): logger.info( "finished iterating over Wikipedia corpus of %i documents with %i positions " "(total %i articles, %i positions before pruning articles shorter than %i words)", - articles, positions, articles_all, positions_all, ARTICLE_MIN_WORDS + articles, positions, articles_all, positions_all, self.article_min_tokens ) self.length = articles # cache corpus length finally: