simulated post editing

This commit is contained in:
Hieu Hoang 2014-11-20 17:28:50 +00:00
parent c87db0c141
commit 9e5be78a7d
2 changed files with 4 additions and 11 deletions

View File

@ -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

View File

@ -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()