diff options
author | edwardgao <edwardgao@9a26d1b7-1c8f-445c-8fdd-6576f508279d> | 2010-01-25 03:27:42 +0300 |
---|---|---|
committer | edwardgao <edwardgao@9a26d1b7-1c8f-445c-8fdd-6576f508279d> | 2010-01-25 03:27:42 +0300 |
commit | 29f3d5d34d4cc7c83a5fa5a8e47eb7b0dca6a3be (patch) | |
tree | 6fe166adb68957c24629101a3f304f140a187f1c | |
parent | 2be195bdfab57981e178f86f2dc0252f78e923a8 (diff) |
-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; |