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>2015-10-25 16:07:25 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-25 16:07:25 +0300
commit84b1c4b4c0c02362cdb35b55e08196d03b993baf (patch)
tree5b8526e6063ce08e0eb5c13bbef8d6e605f46748 /moses/SearchNormal.cpp
parenteeff4fddc85c0edab1b2a3eb4ceecce243f52bc1 (diff)
WordsBitmap -> Bitmap
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r--moses/SearchNormal.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp
index c6d42c666..e36710dc6 100644
--- a/moses/SearchNormal.cpp
+++ b/moses/SearchNormal.cpp
@@ -87,7 +87,7 @@ void SearchNormal::Decode()
// SentenceStats &stats = m_manager.GetSentenceStats();
// initial seed hypothesis: nothing translated, no words produced
- const WordsBitmap &bitmap = m_bitmaps.GetInitialBitmap();
+ const Bitmap &bitmap = m_bitmaps.GetInitialBitmap();
Hypothesis *hypo = new Hypothesis(m_manager, m_source, m_initialTransOpt, bitmap);
m_hypoStackColl[0]->AddPrune(hypo);
@@ -114,7 +114,7 @@ ProcessOneHypothesis(const Hypothesis &hypothesis)
// int maxDistortion = StaticData::Instance().GetMaxDistortion();
bool isWordLattice = m_source.GetType() == WordLatticeInput;
- const WordsBitmap hypoBitmap = hypothesis.GetWordsBitmap();
+ const Bitmap hypoBitmap = hypothesis.GetWordsBitmap();
const size_t hypoFirstGapPos = hypoBitmap.GetFirstGapPos();
size_t const sourceSize = m_source.GetSize();
@@ -252,7 +252,7 @@ ExpandAllHypotheses(const Hypothesis &hypothesis, size_t startPos, size_t endPos
// this idea is explained in (Moore&Quirk, MT Summit 2007)
float expectedScore = 0.0f;
- const WordsBitmap &sourceCompleted = hypothesis.GetWordsBitmap();
+ const Bitmap &sourceCompleted = hypothesis.GetWordsBitmap();
float futureScore = m_transOptColl.GetFutureScore().CalcFutureScore2( sourceCompleted, startPos, endPos );
if (m_options.search.UseEarlyDiscarding()) {
@@ -271,7 +271,7 @@ ExpandAllHypotheses(const Hypothesis &hypothesis, size_t startPos, size_t endPos
// Create new bitmap
const TranslationOption &transOpt = **tol->begin();
const WordsRange &nextRange = transOpt.GetSourceWordsRange();
- const WordsBitmap &nextBitmap = m_bitmaps.GetBitmap(sourceCompleted, nextRange);
+ const Bitmap &nextBitmap = m_bitmaps.GetBitmap(sourceCompleted, nextRange);
TranslationOptionList::const_iterator iter;
for (iter = tol->begin() ; iter != tol->end() ; ++iter) {
@@ -293,7 +293,7 @@ void SearchNormal::ExpandHypothesis(const Hypothesis &hypothesis,
const TranslationOption &transOpt,
float expectedScore,
float futureScore,
- const WordsBitmap &bitmap)
+ const Bitmap &bitmap)
{
const StaticData &staticData = StaticData::Instance();
SentenceStats &stats = m_manager.GetSentenceStats();