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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2015-03-04 03:07:11 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-03-04 03:07:11 +0300
commit982286b38ff72039ebf5c725071fff4e4ea697bf (patch)
tree4644222e4f46e834b62139a705d4adb9e32b7484 /moses/Hypothesis.h
parent9291bb80ca0f0cf6afb7780b8265cecc1556c17e (diff)
Folded contrib/server/mosesserver.cpp into the moses executable.
With immediate effect, mosesserver is deprecated, use moses --server instead.
Diffstat (limited to 'moses/Hypothesis.h')
-rw-r--r--moses/Hypothesis.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/moses/Hypothesis.h b/moses/Hypothesis.h
index 481329338..e48f6cc79 100644
--- a/moses/Hypothesis.h
+++ b/moses/Hypothesis.h
@@ -39,6 +39,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "InputType.h"
#include "ObjectPool.h"
+#ifdef HAVE_XMLRPC_C
+#include <xmlrpc-c/base.hpp>
+#endif
+
namespace Moses
{
@@ -284,6 +288,13 @@ public:
// creates a map of TARGET positions which should be replaced by word using placeholder
std::map<size_t, const Moses::Factor*> GetPlaceholders(const Moses::Hypothesis &hypo, Moses::FactorType placeholderFactor) const;
+#ifdef HAVE_XMLRPC_C
+ void OutputWordAlignment(vector<xmlrpc_c::value>& out) const;
+ void OutputLocalWordAlignment(vector<xmlrpc_c::value>& dest) const;
+#endif
+
+
+
};
std::ostream& operator<<(std::ostream& out, const Hypothesis& hypothesis);