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 // execute task
#ifdef WITH_THREADS #ifdef WITH_THREADS
#ifdef PT_UG #ifdef PT_UG
/*
bool spe = params.isParamSpecified("spe-src"); bool spe = params.isParamSpecified("spe-src");
if (spe) { if (spe) {
// simulated post-editing: always run single-threaded! // simulated post-editing: always run single-threaded!
@ -195,7 +194,6 @@ int main(int argc, char** argv)
} }
} }
else else
*/
#endif #endif
pool.Submit(task); pool.Submit(task);
#else #else

View File

@ -206,16 +206,11 @@ IOWrapper::IOWrapper(const std::vector<FactorType> &inputFactorOrder
m_singleBestOutputCollector = new Moses::OutputCollector(&std::cout); m_singleBestOutputCollector = new Moses::OutputCollector(&std::cout);
} }
/* if (staticData.GetParam("spe-src").size()) {
const Parameter &params = staticData.GetParameter(); spe_src = new ifstream(staticData.GetParam("spe-src")[0].c_str());
bool spe = params.isParamSpecified("spe-src"); spe_trg = new ifstream(staticData.GetParam("spe-trg")[0].c_str());
if (spe) { spe_aln = new ifstream(staticData.GetParam("spe-aln")[0].c_str());
spe_src->open(params.GetParam("spe-src")[0]);
spe_trg->open(params.GetParam("spe-trg")[0]);
spe_aln->open(params.GetParam("spe-aln")[0]);
} }
*/
} }
IOWrapper::~IOWrapper() IOWrapper::~IOWrapper()