File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -756,13 +756,11 @@ def worker_loop():
756
756
next_alpha = self .alpha - (self .alpha - self .min_alpha ) * (pushed_words / total_words )
757
757
next_alpha = max (next_alpha , self .min_alpha )
758
758
except StopIteration :
759
- if job_no == - 1 and self .corpus_count > 0 :
760
- raise Exception (
761
- "Caught StopIteration before performing any work, and "
762
- "yet the corpus count is > 0. Are you by any chance "
763
- "trying to train on an iterator that is based on a "
764
- "generator that does not re-initialize itself? See "
765
- "https://github.com/piskvorky/gensim/issues/443"
759
+ if job_no == - 1 and self .train_count == 0 :
760
+ logger .warning (
761
+ "train() called with empty iterator (if not intended, "
762
+ "be sure to provide a corpus that offers restartable "
763
+ "iteration)."
766
764
)
767
765
logger .info (
768
766
"reached end of input; waiting to finish %i outstanding jobs" ,
You can’t perform that action at this time.
0 commit comments