mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-17 14:17:13 +03:00
simulated post editing
This commit is contained in:
parent
c87db0c141
commit
9e5be78a7d
@ -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
|
||||||
|
@ -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 ¶ms = 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user