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:38:02 +0300
committerHieu Hoang <hieuhoang@gmail.com>2014-11-20 20:38:02 +0300
commit646874d77b5750f3e749c1805847c12d9df67d43 (patch)
tree30131a74db81e28705853adc5bd143c52dde0e9b /moses-cmd
parent9e5be78a7da79c59ca3be429f586f88b4f01d06e (diff)
simulated post editing
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index e3008c88f..319aede20 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -51,6 +51,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "hypergraph.pb.h"
#endif
+#ifdef PT_UG
+#include <boost/foreach.hpp>
+#include "moses/TranslationModel/UG/mmsapt.h"
+#include "moses/TranslationModel/UG/generic/program_options/ug_splice_arglist.h"
+#endif
+
using namespace std;
using namespace Moses;
@@ -178,11 +184,11 @@ int main(int argc, char** argv)
task->Run();
delete task;
string src,trg,aln;
- UTIL_THROW_IF2(!getline(ioWrapper->spe_src,src), "[" << HERE << "] "
+ UTIL_THROW_IF2(!getline(*ioWrapper->spe_src,src), "[" << HERE << "] "
<< "missing update data for simulated post-editing.");
- UTIL_THROW_IF2(!getline(ioWrapper->spe_trg,trg), "[" << HERE << "] "
+ UTIL_THROW_IF2(!getline(*ioWrapper->spe_trg,trg), "[" << HERE << "] "
<< "missing update data for simulated post-editing.");
- UTIL_THROW_IF2(!getline(ioWrapper->spe_aln,aln), "[" << HERE << "] "
+ UTIL_THROW_IF2(!getline(*ioWrapper->spe_aln,aln), "[" << HERE << "] "
<< "missing update data for simulated post-editing.");
BOOST_FOREACH (PhraseDictionary* pd, PhraseDictionary::GetColl())
{