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-11-20 20:28:50 +0300
committerHieu Hoang <hieuhoang@gmail.com>2014-11-20 20:28:50 +0300
commit9e5be78a7da79c59ca3be429f586f88b4f01d06e (patch)
tree3ab38f962997d11a857dfa0ea5410045cd09807d
parentc87db0c141ced5cf78789c2c856e42ec173694ac (diff)
simulated post editing
-rw-r--r--moses-cmd/Main.cpp2
-rw-r--r--moses/IOWrapper.cpp13
2 files changed, 4 insertions, 11 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index cef8379e1..e3008c88f 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -172,7 +172,6 @@ int main(int argc, char** argv)
// execute task
#ifdef WITH_THREADS
#ifdef PT_UG
- /*
bool spe = params.isParamSpecified("spe-src");
if (spe) {
// simulated post-editing: always run single-threaded!
@@ -195,7 +194,6 @@ int main(int argc, char** argv)
}
}
else
- */
#endif
pool.Submit(task);
#else
diff --git a/moses/IOWrapper.cpp b/moses/IOWrapper.cpp
index 2a757a1a7..1810184c6 100644
--- a/moses/IOWrapper.cpp
+++ b/moses/IOWrapper.cpp
@@ -206,16 +206,11 @@ IOWrapper::IOWrapper(const std::vector<FactorType> &inputFactorOrder
m_singleBestOutputCollector = new Moses::OutputCollector(&std::cout);
}
- /*
- const Parameter &params = staticData.GetParameter();
- bool spe = params.isParamSpecified("spe-src");
- if (spe) {
- spe_src->open(params.GetParam("spe-src")[0]);
- spe_trg->open(params.GetParam("spe-trg")[0]);
- spe_aln->open(params.GetParam("spe-aln")[0]);
+ if (staticData.GetParam("spe-src").size()) {
+ spe_src = new ifstream(staticData.GetParam("spe-src")[0].c_str());
+ spe_trg = new ifstream(staticData.GetParam("spe-trg")[0].c_str());
+ spe_aln = new ifstream(staticData.GetParam("spe-aln")[0].c_str());
}
- */
-
}
IOWrapper::~IOWrapper()