mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
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@1265 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
c40d07d0a1
commit
2c9f1a13fe
@ -79,6 +79,11 @@ int main(int argc, char* argv[])
|
||||
TRACE_ERR(endl);
|
||||
}
|
||||
|
||||
cout.setf(std::ios::fixed);
|
||||
cout.precision(5);
|
||||
cerr.setf(std::ios::fixed);
|
||||
cerr.precision(5);
|
||||
|
||||
// load data structures
|
||||
Parameter *parameter = new Parameter();
|
||||
if (!parameter->LoadParam(argc, argv))
|
||||
|
@ -65,8 +65,6 @@ public:
|
||||
<<")\n");
|
||||
|
||||
TRACE_ERR("\npath statistics\n");
|
||||
std::cerr.setf(std::ios::scientific);
|
||||
std::cerr.precision(5);
|
||||
|
||||
if(path1Best.size())
|
||||
{
|
||||
@ -327,10 +325,7 @@ public:
|
||||
|
||||
if (StaticData::Instance().GetVerboseLevel() >= 2 && exPathsD.size())
|
||||
{
|
||||
TRACE_ERR("path stats for current CN: \n");
|
||||
std::cerr.setf(std::ios::scientific);
|
||||
std::cerr.precision(5);
|
||||
TRACE_ERR("CN (full): ");
|
||||
TRACE_ERR("path stats for current CN: \nCN (full): ");
|
||||
std::transform(exPathsD.begin()+1
|
||||
,exPathsD.end()
|
||||
,std::ostream_iterator<double>(std::cerr," ")
|
||||
|
Loading…
Reference in New Issue
Block a user