diff options
Diffstat (limited to 'mgizapp')
-rw-r--r-- | mgizapp/src/model1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mgizapp/src/model1.cpp b/mgizapp/src/model1.cpp index 18fc22a..315a825 100644 --- a/mgizapp/src/model1.cpp +++ b/mgizapp/src/model1.cpp @@ -105,7 +105,7 @@ int model1::em_thread(int noIterations, int nthread, /*Perplexity& perp, sentenc pair_no = 0 ; it_st = time(NULL); cout << "-----------\n" << modelName << ": Iteration " << it << '\n'; - dump_files = (Model1_Dump_Freq != 0) && ((it % Model1_Dump_Freq) == 0) && !NODUMPS ; + dump_files = (Model1_Dump_Freq != 0) && ((it % Model1_Dump_Freq) == 0 || noIterations == it) && !NODUMPS ; // dump_files = true; number = ""; int n = it; |