mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-09 04:56:57 +03:00
45 lines
742 B
C++
45 lines
742 B
C++
// -*- c++ -*-
|
|
#pragma once
|
|
|
|
#include "moses/Util.h"
|
|
#include "moses/ChartManager.h"
|
|
#include "moses/Hypothesis.h"
|
|
#include "moses/Manager.h"
|
|
#include "moses/StaticData.h"
|
|
#include "moses/ThreadPool.h"
|
|
|
|
#if PT_UG
|
|
#include "moses/TranslationModel/UG/mmsapt.h"
|
|
#endif
|
|
|
|
#include <xmlrpc-c/base.hpp>
|
|
#include <xmlrpc-c/registry.hpp>
|
|
#include <xmlrpc-c/server_abyss.hpp>
|
|
|
|
|
|
namespace MosesServer
|
|
{
|
|
class
|
|
Updater: public xmlrpc_c::method
|
|
{
|
|
|
|
typedef std::map<std::string, xmlrpc_c::value> params_t;
|
|
|
|
|
|
std::string m_src, m_trg, m_aln;
|
|
bool m_bounded, m_add2ORLM;
|
|
|
|
public:
|
|
Updater();
|
|
|
|
void
|
|
execute(xmlrpc_c::paramList const& paramList,
|
|
xmlrpc_c::value * const retvalP);
|
|
|
|
void
|
|
breakOutParams(const params_t& params);
|
|
|
|
};
|
|
|
|
}
|