diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-31 15:50:52 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-31 15:50:52 +0300 |
commit | 324c378f7fc54f02a8ea264915d3eade867ff23d (patch) | |
tree | 2bb934fee448845b0524427d437c871e7118ac2c /moses/Hypothesis.h | |
parent | dc8ad899454bd82408c6a371d5f50e497ede0caa (diff) |
Options refactoring. Moses crashed in server mode when asked to provide n-best translations with scores.
Diffstat (limited to 'moses/Hypothesis.h')
-rw-r--r-- | moses/Hypothesis.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/moses/Hypothesis.h b/moses/Hypothesis.h index 125aef530..c1d6c4598 100644 --- a/moses/Hypothesis.h +++ b/moses/Hypothesis.h @@ -251,9 +251,18 @@ public: return m_transOpt; } - void OutputAlignment(std::ostream &out) const; - static void OutputAlignment(std::ostream &out, const std::vector<const Hypothesis *> &edges); - static void OutputAlignment(std::ostream &out, const Moses::AlignmentInfo &ai, size_t sourceOffset, size_t targetOffset); + void + OutputAlignment(std::ostream &out) const; + + static void + OutputAlignment(std::ostream &out, + const std::vector<const Hypothesis *> &edges, + WordAlignmentSort waso); + + static void + OutputAlignment(std::ostream &out, const Moses::AlignmentInfo &ai, + size_t sourceOffset, size_t targetOffset, + WordAlignmentSort waso); void OutputInput(std::ostream& os) const; static void OutputInput(std::vector<const Phrase*>& map, const Hypothesis* hypo); |