From 29f3d5d34d4cc7c83a5fa5a8e47eb7b0dca6a3be Mon Sep 17 00:00:00 2001 From: edwardgao Date: Mon, 25 Jan 2010 00:27:42 +0000 Subject: --- mgizapp/src/model1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mgizapp') 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; -- cgit v1.2.3