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-04-09 12:59:52 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-04-09 12:59:52 +0400
commit0e98f1bc06602a041ca92bf24441ba19d0a8ab70 (patch)
tree2ae65f27c5570cd3a6059a5a260d5a777bcf4798 /moses/FF/ControlRecombination.cpp
parentaf408f42285f9cb57d505c19721ad7b5f473d369 (diff)
bug in ControlRecombinationState
Diffstat (limited to 'moses/FF/ControlRecombination.cpp')
-rw-r--r--moses/FF/ControlRecombination.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/FF/ControlRecombination.cpp b/moses/FF/ControlRecombination.cpp
index 150795c65..d3e7c82ab 100644
--- a/moses/FF/ControlRecombination.cpp
+++ b/moses/FF/ControlRecombination.cpp
@@ -16,7 +16,7 @@ ControlRecombinationState::ControlRecombinationState(const Hypothesis &hypo, con
:m_ff(ff)
{
if (ff.GetType() == SameOutput) {
- UTIL_THROW(util::Exception, "Implemented not yet completed for phrase-based model. Need to take into account the coverage");
+ //UTIL_THROW(util::Exception, "Implemented not yet completed for phrase-based model. Need to take into account the coverage");
hypo.GetOutputPhrase(m_outputPhrase);
} else {
m_hypo = &hypo;
@@ -36,8 +36,9 @@ ControlRecombinationState::ControlRecombinationState(const ChartHypothesis &hypo
int ControlRecombinationState::Compare(const FFState& other) const
{
const ControlRecombinationState &otherFF = static_cast<const ControlRecombinationState&>(other);
+
if (m_ff.GetType() == SameOutput) {
- bool ret = m_outputPhrase.Compare(otherFF.m_outputPhrase);
+ int ret = m_outputPhrase.Compare(otherFF.m_outputPhrase);
return ret;
} else {
// compare hypo address. Won't be equal unless they're actually the same hypo