@@ -47,7 +47,7 @@ static bool debug2 = false;
47
47
Manager::Manager (InputType const & source)
48
48
:m_source(source)
49
49
,m_hypoStackColl(source.GetSize() + 1)
50
- ,m_possibleTranslations (source.CreateTranslationOptionCollection())
50
+ ,m_transOptColl (source.CreateTranslationOptionCollection())
51
51
,m_initialTargetPhrase(Output)
52
52
,m_start(clock())
53
53
{
@@ -66,7 +66,7 @@ Manager::Manager(InputType const& source)
66
66
67
67
Manager::~Manager ()
68
68
{
69
- delete m_possibleTranslations ;
69
+ delete m_transOptColl ;
70
70
StaticData::Instance ().CleanUpAfterSentenceProcessing ();
71
71
72
72
clock_t end = clock ();
@@ -92,7 +92,7 @@ void Manager::ProcessSentence()
92
92
// 1. generation of source sentence is not done 1st
93
93
// 2. initial hypothesis factors are given in the sentence
94
94
// CreateTranslationOptions(m_source, phraseDictionary, lmListInitial);
95
- m_possibleTranslations ->CreateTranslationOptions (decodeStepVL);
95
+ m_transOptColl ->CreateTranslationOptions (decodeStepVL);
96
96
97
97
// initial seed hypothesis: nothing translated, no words produced
98
98
{
@@ -155,7 +155,7 @@ void Manager::ProcessOneHypothesis(const Hypothesis &hypothesis)
155
155
if (!hypoBitmap.Overlap (WordsRange (startPos, endPos)))
156
156
{
157
157
ExpandAllHypotheses (hypothesis
158
- , m_possibleTranslations ->GetTranslationOptionList (WordsRange (startPos, endPos)));
158
+ , m_transOptColl ->GetTranslationOptionList (WordsRange (startPos, endPos)));
159
159
}
160
160
}
161
161
}
@@ -234,7 +234,7 @@ void Manager::ProcessOneHypothesis(const Hypothesis &hypothesis)
234
234
if (debug2) { std::cerr << " Ext!\n " ; StaticData::Instance ().SetVerboseLevel (4 ); }
235
235
#endif
236
236
ExpandAllHypotheses (hypothesis
237
- ,m_possibleTranslations ->GetTranslationOptionList (extRange));
237
+ ,m_transOptColl ->GetTranslationOptionList (extRange));
238
238
#ifdef DEBUGLATTICE
239
239
StaticData::Instance ().SetVerboseLevel (vl);
240
240
#endif
@@ -255,7 +255,7 @@ void Manager::ProcessOneHypothesis(const Hypothesis &hypothesis)
255
255
256
256
if (required_distortion <= maxDistortion) {
257
257
ExpandAllHypotheses (hypothesis
258
- ,m_possibleTranslations ->GetTranslationOptionList (extRange));
258
+ ,m_transOptColl ->GetTranslationOptionList (extRange));
259
259
}
260
260
#ifdef DEBUGLATTICE
261
261
else
@@ -295,7 +295,7 @@ void Manager::ExpandHypothesis(const Hypothesis &hypothesis, const TranslationOp
295
295
if (debug2) { std::cerr << " ::EXT: " << transOpt << " \n " ; }
296
296
#endif
297
297
Hypothesis *newHypo = hypothesis.CreateNext (transOpt);
298
- newHypo->CalcScore (m_possibleTranslations ->GetFutureScore ());
298
+ newHypo->CalcScore (m_transOptColl ->GetFutureScore ());
299
299
300
300
// logging for the curious
301
301
IFVERBOSE (3 ) {
0 commit comments