Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2014-10-03 15:30:18 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-10-03 15:30:18 +0400
commit056913df5780b1094dffdf2e0961a89513a1c6fa (patch)
treeffed67d779346086c96f85730a62459533e86462 /moses-cmd
parentfe9a2561a3640666555d6357b0805d3da0a84da7 (diff)
delete nbestOut
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index f78c71acd..3751a597e 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -139,24 +139,9 @@ int main(int argc, char** argv)
// note: we can't just write to STDOUT or files
// because multithreading may return sentences in shuffled order
auto_ptr<OutputCollector> latticeSamplesCollector; //for lattice samples
- auto_ptr<ofstream> nbestOut;
auto_ptr<ofstream> latticeSamplesOut;
- size_t nbestSize = staticData.GetNBestSize();
- string nbestFile = staticData.GetNBestFilePath();
bool output1best = true;
- if (nbestSize) {
- if (nbestFile == "-" || nbestFile == "/dev/stdout") {
- // nbest to stdout, no 1-best
- output1best = false;
- } else {
- // nbest to file, 1-best to stdout
- nbestOut.reset(new ofstream(nbestFile.c_str()));
- if (!nbestOut->good()) {
- TRACE_ERR("ERROR: Failed to open " << nbestFile << " for nbest lists" << endl);
- exit(1);
- }
- }
- }
+
size_t latticeSamplesSize = staticData.GetLatticeSamplesSize();
string latticeSamplesFile = staticData.GetLatticeSamplesFilePath();
if (latticeSamplesSize) {