diff options
author | redpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-13 16:09:23 +0400 |
---|---|---|
committer | redpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-13 16:09:23 +0400 |
commit | d3f951ea858ea389f4641bb9eedd6038debe2823 (patch) | |
tree | 7a4504f8683eb9a522db01ea02d967aa4194b459 /moses-cmd | |
parent | 874983ded478400fb32932e621e4de15b7f5105b (diff) |
add logging
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@86 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-cmd')
-rw-r--r-- | moses-cmd/src/Main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/moses-cmd/src/Main.cpp b/moses-cmd/src/Main.cpp index 3e615dc5b..7b19a139b 100644 --- a/moses-cmd/src/Main.cpp +++ b/moses-cmd/src/Main.cpp @@ -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() |