mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
minor
This commit is contained in:
parent
073f9c5656
commit
90a3650b42
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user