diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-20 20:28:50 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-20 20:28:50 +0300 |
commit | 9e5be78a7da79c59ca3be429f586f88b4f01d06e (patch) | |
tree | 3ab38f962997d11a857dfa0ea5410045cd09807d /moses/IOWrapper.cpp | |
parent | c87db0c141ced5cf78789c2c856e42ec173694ac (diff) |
simulated post editing
Diffstat (limited to 'moses/IOWrapper.cpp')
-rw-r--r-- | moses/IOWrapper.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
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 ¶ms = 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() |