From 25f8a4280da59067d40a1e5d56bd20743c5c4909 Mon Sep 17 00:00:00 2001 From: SanthoshBala18 Date: Fri, 4 Oct 2019 08:09:03 +0530 Subject: [PATCH] Fixed #2554 (#2619) --- 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: