From cbefa3d94bdfee57e4276d4ea22a32ffda22ff13 Mon Sep 17 00:00:00 2001 From: Pamela Shapiro Date: Tue, 18 Jul 2017 22:57:08 -0400 Subject: [PATCH] Prevent last thread from exiting early on multiple iterations --- word2vec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/word2vec.c b/word2vec.c index 9d6fffd..800dea8 100644 --- a/word2vec.c +++ b/word2vec.c @@ -424,6 +424,7 @@ void *TrainModelThread(void *id) { last_word_count = 0; sentence_length = 0; fseek(fi, file_size / (long long)num_threads * (long long)id, SEEK_SET); + eof = 0; continue; } word = sen[sentence_position];