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-01-25 14:39:47 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-01-25 14:39:47 +0400
commit9745924937e5bc49dff74014b764400cd9311a24 (patch)
tree0a675e113ffc4b115872549ea1e7515268f28da1 /moses/SearchNormal.cpp
parent9054df951e7e64409f2f119d881fa4ca04148326 (diff)
output list of available feature functions, separated by space, rather than lines
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r--moses/SearchNormal.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp
index 596ede562..8ac0eca13 100644
--- a/moses/SearchNormal.cpp
+++ b/moses/SearchNormal.cpp
@@ -253,6 +253,11 @@ void SearchNormal::ExpandAllHypotheses(const Hypothesis &hypothesis, size_t star
expectedScore += m_transOptColl.GetFutureScore().CalcFutureScore( hypothesis.GetWordsBitmap(), startPos, endPos );
}
+ if (StaticData::Instance().AdjacentOnly() &&
+ !hypothesis.GetWordsBitmap().IsAdjacent(startPos, endPos)) {
+ return;
+ }
+
// loop through all translation options
const TranslationOptionList &transOptList = m_transOptColl.GetTranslationOptionList(WordsRange(startPos, endPos));
TranslationOptionList::const_iterator iter;