make output of decimal places consistent by not format anywhere but in Main.cpp

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1266 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2007-03-04 00:43:45 +00:00
parent 2c9f1a13fe
commit 5f22fb13d3
11 changed files with 43 additions and 41 deletions

View File

@ -80,9 +80,9 @@ int main(int argc, char* argv[])
}
cout.setf(std::ios::fixed);
cout.precision(5);
cout.precision(3);
cerr.setf(std::ios::fixed);
cerr.precision(5);
cerr.precision(3);
// load data structures
Parameter *parameter = new Parameter();

View File

@ -105,7 +105,8 @@ inline void Timer::check(const char* msg)
// Print an optional message, something like "Checking timer t";
if (msg) TRACE_ERR( msg << " : ");
TRACE_ERR( "[" << std::setiosflags(std::ios::fixed) << std::setprecision(2) << (running ? elapsed_time() : 0) << "] seconds\n");
// TRACE_ERR( "[" << std::setiosflags(std::ios::fixed) << std::setprecision(2) << (running ? elapsed_time() : 0) << "] seconds\n");
TRACE_ERR( "[" << (running ? elapsed_time() : 0) << "] seconds\n");
}
/***
@ -115,7 +116,8 @@ inline void Timer::check(const char* msg)
*/
inline std::ostream& operator<<(std::ostream& os, Timer& t)
{
os << std::setprecision(2) << std::setiosflags(std::ios::fixed) << (t.running ? t.elapsed_time() : 0);
//os << std::setprecision(2) << std::setiosflags(std::ios::fixed) << (t.running ? t.elapsed_time() : 0);
os << (t.running ? t.elapsed_time() : 0);
return os;
}

View File

@ -6,8 +6,8 @@ TRANSLATION_5=only then will the european institutions to its mandate .
LMLOAD_TIME ~ 10.00
PTLOAD_TIME ~ 10.00
SCORE_1 = -14.843
SCORE_2 = -133.76
SCORE_3 = -240.24
SCORE_4 = -5.9953
SCORE_5 = -7.0155
SCORE_2 = -133.757
SCORE_3 = -240.241
SCORE_4 = -5.995
SCORE_5 = -7.015
TOTAL_WALLTIME ~ 23

View File

@ -5,9 +5,9 @@ TRANSLATION_4=parliament wants the in two ways .
TRANSLATION_5=only then will the european institutions to its mandate .
LMLOAD_TIME ~ 8.00
PTLOAD_TIME ~ 9.00
SCORE_1 = -14.84
SCORE_2 = -133.76
SCORE_3 = -240.24
SCORE_4 = -6.00
SCORE_5 = -7.02
SCORE_1 = -14.843
SCORE_2 = -133.757
SCORE_3 = -240.241
SCORE_4 = -5.995
SCORE_5 = -7.015
TOTAL_WALLTIME ~ 28

View File

@ -4,6 +4,6 @@ TRANSLATION_3=that is the order of business
LMLOAD_TIME ~ 10.00
PTLOAD_TIME ~ 10.00
SCORE_1 = -93.671
SCORE_2 = -85.3
SCORE_2 = -85.300
SCORE_3 = -93.671
TOTAL_WALLTIME ~ 11

View File

@ -3,7 +3,7 @@ TRANSLATION_2=this is the order of business
TRANSLATION_3=that is the order of business
LMLOAD_TIME ~ 10.00
PTLOAD_TIME ~ 10.00
SCORE_1 = -2.9661
SCORE_2 = -2.5648
SCORE_3 = -2.9661
SCORE_1 = -2.966
SCORE_2 = -2.565
SCORE_3 = -2.966
TOTAL_WALLTIME ~ 11

View File

@ -1,5 +1,5 @@
TRANSLATION_1=there are various different opinions .
LMLOAD_TIME ~ 10.00
PTLOAD_TIME ~ 10.00
SCORE_1 = -113.73
SCORE_1 = -113.734
TOTAL_WALLTIME ~ 11

View File

@ -1,5 +1,5 @@
TRANSLATION_1=there are different opinions
LMLOAD_TIME ~ 10.00
PTLOAD_TIME ~ 11.00
SCORE_1 = -12.67
SCORE_1 = -12.675
TOTAL_WALLTIME ~ 11

View File

@ -1,5 +1,5 @@
TRANSLATION_1=there are various different opinions .
LMLOAD_TIME ~ 10.00
PTLOAD_TIME ~ 11.00
SCORE_1 = -113.73
SCORE_1 = -113.734
TOTAL_WALLTIME ~ 12

View File

@ -1,7 +1,7 @@
TRANSLATION_0=there are various different opinions .
LMLOAD_TIME ~ 11.00
PTLOAD_TIME ~ 23.00
SCORE_0= -113.73
SCORE_0= -113.734
TRANSLATION_0_NBEST_1=there are various different opinions . ||| d: 0 lm: -21.6664 tm: -3.46226 -10.822 -2.82666 -9.32004 2.99969 -2.44147 -4.91188 -6.12017 -10.5033 2.99969 w: -6 g: -0.0625204 -18.098
TRANSLATION_0_NBEST_2=there are various other opinions . ||| d: 0 lm: -25.3276 tm: -1.94591 -10.3833 -0.693147 -7.77959 1.99979 -0.924822 -4.91188 -3.33314 -10.5033 1.99979 w: -6 g: -0.149241 -16.9924
TOTAL_WALLTIME ~ 23

View File

@ -1,22 +1,22 @@
TRANSLATION_OPTION_1=form of , pC=-0.57, c=-0.81
TRANSLATION_OPTION_2=from , pC=-0.60, c=-0.78
TRANSLATION_OPTION_3=money , pC=-0.38, c=-0.68
TRANSLATION_OPTION_4=money transfers , pC=-0.29, c=-0.80
TRANSLATION_OPTION_5=of transfers , pC=-0.32, c=-0.80
TRANSLATION_OPTION_6=payments , pC=-0.49, c=-0.82
TRANSLATION_OPTION_7=providing , pC=-0.54, c=-0.87
TRANSLATION_OPTION_8=remittance , pC=-0.06, c=-0.63
TRANSLATION_OPTION_9=remittance of , pC=-0.15, c=-0.73
TRANSLATION_OPTION_10=remittances , , pC=-0.20, c=-0.79
TRANSLATION_OPTION_11=remittances , pC=-0.04, c=-0.61
TRANSLATION_OPTION_12=remittances , to , pC=-0.16, c=-0.86
TRANSLATION_OPTION_13=remittances from , pC=-0.15, c=-0.75
TRANSLATION_OPTION_14=represents , pC=-0.55, c=-0.85
TRANSLATION_OPTION_15=sending money , pC=-0.33, c=-0.84
TRANSLATION_OPTION_16=sent , pC=-0.49, c=-0.83
TRANSLATION_OPTION_17=transfer , pC=-0.37, c=-0.72
TRANSLATION_OPTION_18=transfer of money , pC=-0.35, c=-0.80
TRANSLATION_OPTION_19=transfers , pC=-0.33, c=-0.69
TRANSLATION_OPTION_20=transfers from , pC=-0.36, c=-0.76
TRANSLATION_OPTION_1=form of , pC=-0.571, c=-0.815
TRANSLATION_OPTION_2=from , pC=-0.604, c=-0.783
TRANSLATION_OPTION_3=money , pC=-0.380, c=-0.680
TRANSLATION_OPTION_4=money transfers , pC=-0.291, c=-0.797
TRANSLATION_OPTION_5=of transfers , pC=-0.323, c=-0.805
TRANSLATION_OPTION_6=payments , pC=-0.493, c=-0.816
TRANSLATION_OPTION_7=providing , pC=-0.536, c=-0.866
TRANSLATION_OPTION_8=remittance , pC=-0.059, c=-0.627
TRANSLATION_OPTION_9=remittance of , pC=-0.154, c=-0.726
TRANSLATION_OPTION_10=remittances , , pC=-0.202, c=-0.793
TRANSLATION_OPTION_11=remittances , pC=-0.043, c=-0.611
TRANSLATION_OPTION_12=remittances , to , pC=-0.161, c=-0.864
TRANSLATION_OPTION_13=remittances from , pC=-0.154, c=-0.753
TRANSLATION_OPTION_14=represents , pC=-0.551, c=-0.852
TRANSLATION_OPTION_15=sending money , pC=-0.333, c=-0.835
TRANSLATION_OPTION_16=sent , pC=-0.491, c=-0.833
TRANSLATION_OPTION_17=transfer , pC=-0.374, c=-0.717
TRANSLATION_OPTION_18=transfer of money , pC=-0.352, c=-0.801
TRANSLATION_OPTION_19=transfers , pC=-0.333, c=-0.692
TRANSLATION_OPTION_20=transfers from , pC=-0.359, c=-0.759
TRANSLATION_1 = from the west .
TOTAL_WALLTIME ~ 14