mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
simulated post editing
This commit is contained in:
parent
9e5be78a7d
commit
646874d77b
@ -51,6 +51,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
#include "hypergraph.pb.h"
|
#include "hypergraph.pb.h"
|
||||||
#endif
|
#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 std;
|
||||||
using namespace Moses;
|
using namespace Moses;
|
||||||
|
|
||||||
@ -178,11 +184,11 @@ int main(int argc, char** argv)
|
|||||||
task->Run();
|
task->Run();
|
||||||
delete task;
|
delete task;
|
||||||
string src,trg,aln;
|
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.");
|
<< "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.");
|
<< "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.");
|
<< "missing update data for simulated post-editing.");
|
||||||
BOOST_FOREACH (PhraseDictionary* pd, PhraseDictionary::GetColl())
|
BOOST_FOREACH (PhraseDictionary* pd, PhraseDictionary::GetColl())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user