This commit is contained in:
Ales Tamchyna 2016-03-24 12:45:35 +01:00
parent 073f9c5656
commit 90a3650b42
3 changed files with 4 additions and 4 deletions

View File

@ -183,7 +183,7 @@ const FFState* VW::EmptyHypothesisState(const InputType &input) const {
for (size_t i = 0; i < maxContextSize; i++)
initialPhrase.AddWord(m_sentenceStartWord);
return new VWState(initialPhrase, 0, 0);
return new VWState(initialPhrase);
}
void VW::EvaluateTranslationOptionListWithSourceContext(const InputType &input

View File

@ -15,8 +15,8 @@ VWState::VWState() : m_spanStart(0), m_spanEnd(0) {
ComputeHash();
}
VWState::VWState(const Phrase &phrase, size_t spanStart, size_t spanEnd)
: m_phrase(phrase), m_spanStart(spanStart), m_spanEnd(spanEnd) {
VWState::VWState(const Phrase &phrase)
: m_phrase(phrase), m_spanStart(0), m_spanEnd(0) {
ComputeHash();
}

View File

@ -17,7 +17,7 @@ public:
VWState();
// used for construction of the initial VW state
VWState(const Phrase &phrase, size_t spanStart, size_t spanEnd);
VWState(const Phrase &phrase);
// continue from previous VW state with a new hypothesis
VWState(const VWState &prevState, const Hypothesis &curHypo);