diff --git a/moses/Hypothesis.cpp b/moses/Hypothesis.cpp index 63de4ce1f..bf871cc66 100644 --- a/moses/Hypothesis.cpp +++ b/moses/Hypothesis.cpp @@ -54,17 +54,19 @@ Hypothesis::Hypothesis(Manager& manager, InputType const& source, const TargetPh , m_sourceCompleted(source.GetSize(), manager.m_source.m_sourceCompleted) , m_sourceInput(source) , m_currSourceWordsRange( - m_sourceCompleted.GetFirstGapPos()>0 ? 0 : NOT_FOUND, - m_sourceCompleted.GetFirstGapPos()>0 ? m_sourceCompleted.GetFirstGapPos()-1 : NOT_FOUND) + m_sourceCompleted.GetFirstGapPos() > 0 + ? 0 : NOT_FOUND, + m_sourceCompleted.GetFirstGapPos() > 0 + ? m_sourceCompleted.GetFirstGapPos()-1 + : NOT_FOUND) , m_currTargetWordsRange(0, emptyTarget.GetSize()-1) , m_wordDeleted(false) + , m_totalScore(0.0f) + , m_futureScore(0.0f) , m_ffStates(StatefulFeatureFunction::GetStatefulFeatureFunctions().size()) , m_arcList(NULL) , m_transOpt(NULL) - , m_manager(manager) -, m_totalScore(0.0f) -, m_futureScore(0.0f) - + , m_manager(manager) , m_id(m_manager.GetNextHypoId()) { // used for initial seeding of trans process