mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-17 14:17:13 +03:00
add logging
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@86 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
874983ded4
commit
d3f951ea85
@ -77,6 +77,15 @@ int main(int argc, char* argv[])
|
||||
if (!staticData.LoadParameters(argc, argv))
|
||||
return EXIT_FAILURE;
|
||||
|
||||
if (staticData.GetVerboseLevel() > 0)
|
||||
{
|
||||
#if N_BEST
|
||||
std::cerr << "N_BEST=enabled\n";
|
||||
#else
|
||||
std::cerr << "N_BEST=disabled\n";
|
||||
#endif
|
||||
}
|
||||
|
||||
// set up read/writing class
|
||||
InputOutput *inputOutput = GetInputOutput(staticData);
|
||||
|
||||
@ -155,7 +164,7 @@ InputOutput *GetInputOutput(StaticData &staticData)
|
||||
}
|
||||
else
|
||||
{
|
||||
TRACE_ERR("IO from Cmdline" << endl);
|
||||
TRACE_ERR("IO from STDOUT/STDIN" << endl);
|
||||
inputOutput = new IOCommandLine(factorOrder, inputFactorUsed
|
||||
, staticData.GetFactorCollection()
|
||||
, staticData.GetNBestSize()
|
||||
|
Loading…
Reference in New Issue
Block a user