#include <Hypothesis.h>

Public Member Functions | |
| ~Hypothesis () | |
| Hypothesis * | CreateNext (const TranslationOption &transOpt, const Phrase *constraint) const |
| void | PrintHypothesis () const |
| const InputType & | GetInput () const |
| const TargetPhrase & | GetCurrTargetPhrase () const |
| const WordsRange & | GetCurrSourceWordsRange () const |
| const WordsRange & | GetCurrTargetWordsRange () const |
| Manager & | GetManager () const |
| size_t | GetCurrTargetLength () const |
| void | ResetScore () |
| void | CalcScore (const SquareMatrix &futureScore) |
| float | CalcExpectedScore (const SquareMatrix &futureScore) |
| void | CalcRemainingScore () |
| int | GetId () const |
| const Hypothesis * | GetPrevHypo () const |
| size_t | GetSize () const |
| const Phrase * | GetSourcePhrase () const |
| std::string | GetSourcePhraseStringRep (const std::vector< FactorType > factorsToPrint) const |
| std::string | GetTargetPhraseStringRep (const std::vector< FactorType > factorsToPrint) const |
| std::string | GetSourcePhraseStringRep () const |
| std::string | GetTargetPhraseStringRep () const |
| const Word & | GetCurrWord (size_t pos) const |
| const Factor * | GetCurrFactor (size_t pos, FactorType factorType) const |
| const Word & | GetWord (size_t pos) const |
| const Factor * | GetFactor (size_t pos, FactorType factorType) const |
| const WordsBitmap & | GetWordsBitmap () const |
| bool | IsSourceCompleted () const |
| int | RecombineCompare (const Hypothesis &compare) const |
| void | ToStream (std::ostream &out) const |
| TO_STRING () | |
| void | SetWinningHypo (const Hypothesis *hypo) |
| const Hypothesis * | GetWinningHypo () const |
| void | AddArc (Hypothesis *loserHypo) |
| void | CleanupArcList () |
| const ArcList * | GetArcList () const |
| returns a list alternative previous hypotheses (or NULL if n-best support is disabled) | |
| const ScoreComponentCollection & | GetScoreBreakdown () const |
| float | GetTotalScore () const |
| float | GetScore () const |
| size_t | GetNextStartPos (const TranslationOption &transOpt) const |
| target span that trans opt would populate if applied to this hypo. Used for alignment check | |
| std::vector< std::vector < unsigned int > > * | GetLMStats () const |
| const TranslationOption & | GetTranslationOption () const |
Static Public Member Functions | |
| static ObjectPool< Hypothesis > & | GetObjectPool () |
| static Hypothesis * | Create (const Hypothesis &prevHypo, const TranslationOption &transOpt, const Phrase *constraint) |
| static Hypothesis * | Create (Manager &manager, const WordsBitmap &initialCoverage) |
| static Hypothesis * | Create (Manager &manager, InputType const &source, const TargetPhrase &emptyTarget) |
Protected Member Functions | |
| Hypothesis (Manager &manager, InputType const &source, const TargetPhrase &emptyTarget) | |
| Hypothesis (const Hypothesis &prevHypo, const TranslationOption &transOpt) | |
Protected Attributes | |
| const Hypothesis * | m_prevHypo |
| const TargetPhrase & | m_targetPhrase |
| Phrase const * | m_sourcePhrase |
| WordsBitmap | m_sourceCompleted |
| InputType const & | m_sourceInput |
| WordsRange | m_currSourceWordsRange |
| WordsRange | m_currTargetWordsRange |
| bool | m_wordDeleted |
| float | m_totalScore |
| float | m_futureScore |
| ScoreComponentCollection | m_scoreBreakdown |
| std::vector< const FFState * > | m_ffStates |
| const Hypothesis * | m_winningHypo |
| ArcList * | m_arcList |
| const TranslationOption * | m_transOpt |
| Manager & | m_manager |
| int | m_id |
Static Protected Attributes | |
| static ObjectPool< Hypothesis > | s_objectPool |
Friends | |
| std::ostream & | operator<< (std::ostream &, const Hypothesis &) |
The expansion of hypotheses is handled in the class Manager, which stores active hypothesis in the search in hypothesis stacks.
Definition at line 61 of file Hypothesis.h.
| Moses::Hypothesis::Hypothesis | ( | Manager & | manager, | |
| InputType const & | source, | |||
| const TargetPhrase & | emptyTarget | |||
| ) | [protected] |
numeric ID of this hypothesis, used for logging
used by initial seeding of the translation process
Definition at line 51 of file Hypothesis.cpp.
References Moses::SentenceStats::AddCreated(), Moses::Manager::GetSentenceStats(), Moses::TranslationSystem::GetStatefulFeatureFunctions(), Moses::Manager::GetTranslationSystem(), m_ffStates, m_manager, and ResetScore().
Referenced by Create().


| Moses::Hypothesis::Hypothesis | ( | const Hypothesis & | prevHypo, | |
| const TranslationOption & | transOpt | |||
| ) | [protected] |
used when creating a new hypothesis using a translation option (phrase translation)
Definition at line 83 of file Hypothesis.cpp.
References Moses::SentenceStats::AddCreated(), CHECK, Moses::WordsRange::GetEndPos(), Moses::Manager::GetSentenceStats(), Moses::WordsRange::GetStartPos(), Moses::TranslationOption::IsDeletionOption(), m_currSourceWordsRange, m_manager, m_sourceCompleted, m_wordDeleted, Moses::WordsBitmap::Overlap(), and Moses::WordsBitmap::SetValue().

| Moses::Hypothesis::~Hypothesis | ( | ) |
Definition at line 112 of file Hypothesis.cpp.
References FREEHYPO, m_arcList, m_ffStates, and NULL.
| void Moses::Hypothesis::AddArc | ( | Hypothesis * | loserHypo | ) |
Definition at line 129 of file Hypothesis.cpp.
References m_arcList.
Referenced by Moses::HypothesisStackNormal::AddPrune(), and Moses::HypothesisStackCubePruning::AddPrune().

| float Moses::Hypothesis::CalcExpectedScore | ( | const SquareMatrix & | futureScore | ) |
Calculates the expected score of extending this hypothesis with the specified translation option. Includes actual costs for everything except for expensive actual language model score. This function is used by early discarding. /param transOpt - translation option being considered
Definition at line 313 of file Hypothesis.cpp.
References Moses::SentenceStats::AddTimeEstimateScore(), Moses::SquareMatrix::CalcFutureScore(), CHECK, Moses::StaticData::GetAllWeights(), Moses::TranslationOption::GetFutureScore(), Moses::TranslationOption::GetScoreBreakdown(), Moses::Manager::GetSentenceStats(), IFVERBOSE, Moses::ScoreComponentCollection::InnerProduct(), Moses::StaticData::Instance(), m_futureScore, m_manager, m_scoreBreakdown, m_sourceCompleted, and m_transOpt.
Referenced by Moses::SearchNormal::ExpandHypothesis().


| void Moses::Hypothesis::CalcRemainingScore | ( | ) |
Definition at line 339 of file Hypothesis.cpp.
References Moses::SentenceStats::AddTimeOtherScore(), CHECK, Moses::StaticData::GetAllWeights(), Moses::WordsRange::GetNumWordsCovered(), Moses::Manager::GetSentenceStats(), Moses::Manager::GetTranslationSystem(), Moses::TranslationSystem::GetWordPenaltyProducer(), IFVERBOSE, Moses::ScoreComponentCollection::InnerProduct(), Moses::StaticData::Instance(), m_currTargetWordsRange, m_futureScore, m_manager, m_scoreBreakdown, m_totalScore, and Moses::ScoreComponentCollection::PlusEquals().
Referenced by Moses::SearchNormal::ExpandHypothesis().


| void Moses::Hypothesis::CalcScore | ( | const SquareMatrix & | futureScore | ) |
Definition at line 264 of file Hypothesis.cpp.
References Moses::SentenceStats::AddTimeOtherScore(), Moses::SquareMatrix::CalcFutureScore(), Moses::StaticData::GetAllWeights(), Moses::TranslationOption::GetScoreBreakdown(), Moses::Manager::GetSentenceStats(), Moses::TranslationSystem::GetStatefulFeatureFunctions(), Moses::TranslationSystem::GetStatelessFeatureFunctions(), Moses::Manager::GetTranslationSystem(), IFVERBOSE, Moses::ScoreComponentCollection::InnerProduct(), Moses::StaticData::Instance(), m_ffStates, m_futureScore, m_manager, m_prevHypo, m_scoreBreakdown, m_sourceCompleted, m_targetPhrase, m_totalScore, m_transOpt, NULL, and Moses::ScoreComponentCollection::PlusEquals().
Referenced by Moses::SearchNormal::ExpandHypothesis().


| void Moses::Hypothesis::CleanupArcList | ( | ) |
Definition at line 406 of file Hypothesis.cpp.
References FREEHYPO, Moses::StaticData::GetDistinctNBest(), Moses::StaticData::GetNBestSize(), Moses::StaticData::GetOutputSearchGraph(), Moses::StaticData::Instance(), m_arcList, SetWinningHypo(), Moses::StaticData::UseLatticeMBR(), and Moses::StaticData::UseMBR().
Referenced by Moses::HypothesisStackNormal::CleanupArcList(), and Moses::HypothesisStackCubePruning::CleanupArcList().


| Hypothesis * Moses::Hypothesis::Create | ( | Manager & | manager, | |
| InputType const & | source, | |||
| const TargetPhrase & | emptyTarget | |||
| ) | [static] |
return the subclass of Hypothesis most appropriate to the given target phrase
Definition at line 219 of file Hypothesis.cpp.
References ObjectPool< T >::getPtr(), Hypothesis(), and s_objectPool.

| static Hypothesis* Moses::Hypothesis::Create | ( | Manager & | manager, | |
| const WordsBitmap & | initialCoverage | |||
| ) | [static] |
| Hypothesis * Moses::Hypothesis::Create | ( | const Hypothesis & | prevHypo, | |
| const TranslationOption & | transOpt, | |||
| const Phrase * | constraint | |||
| ) | [static] |
return the subclass of Hypothesis most appropriate to the given translation option
Definition at line 164 of file Hypothesis.cpp.
References GetCurrTargetWordsRange(), Moses::WordsRange::GetEndPos(), ObjectPool< T >::getPtr(), Moses::Phrase::GetSize(), Moses::Phrase::GetSubString(), Moses::TranslationOption::GetTargetPhrase(), Hypothesis(), Moses::Phrase::IsCompatible(), NULL, and s_objectPool.
Referenced by CreateNext(), Moses::SearchNormal::ProcessSentence(), and Moses::SearchCubePruning::ProcessSentence().


| Hypothesis * Moses::Hypothesis::CreateNext | ( | const TranslationOption & | transOpt, | |
| const Phrase * | constraint | |||
| ) | const |
return the subclass of Hypothesis most appropriate to the given translation option
Definition at line 156 of file Hypothesis.cpp.
References Create().
Referenced by Moses::SearchNormal::ExpandHypothesis().


| const ArcList* Moses::Hypothesis::GetArcList | ( | ) | const [inline] |
returns a list alternative previous hypotheses (or NULL if n-best support is disabled)
Definition at line 227 of file Hypothesis.h.
References m_arcList.
Referenced by Moses::TrellisPath::CreateDeviantPaths(), Moses::Manager::GetConnectedGraph(), Moses::Manager::GetWinnerConnectedGraph(), Moses::Manager::GetWordGraph(), and pruneLatticeFB().

| const Factor* Moses::Hypothesis::GetCurrFactor | ( | size_t | pos, | |
| FactorType | factorType | |||
| ) | const [inline] |
Definition at line 178 of file Hypothesis.h.
References Moses::Phrase::GetFactor(), and m_targetPhrase.

| const WordsRange& Moses::Hypothesis::GetCurrSourceWordsRange | ( | ) | const [inline] |
return input positions covered by the translation option (phrasal translation) used to create this hypothesis
Definition at line 128 of file Hypothesis.h.
References m_currSourceWordsRange.
Referenced by Moses::SentenceStats::AddDeletedWords(), Moses::BackwardsEdge::BackwardsEdge(), Moses::Manager::CalcDecoderStatistics(), Moses::DistortionScoreProducer::Evaluate(), Moses::HypothesisScoreOrdererWithDistortion::operator()(), Moses::operator<<(), OutputAlignment(), OutputBestHypo(), OutputInput(), OutputNBest(), Moses::OutputSearchNode(), OutputSurface(), and Moses::SearchNormal::ProcessOneHypothesis().

| size_t Moses::Hypothesis::GetCurrTargetLength | ( | ) | const [inline] |
output length of the translation option used to create this hypothesis
Definition at line 141 of file Hypothesis.h.
References Moses::WordsRange::GetNumWordsCovered(), and m_currTargetWordsRange.
Referenced by Moses::LanguageModelImplementation::Evaluate(), and Moses::TrellisPath::GetTargetWordsRange().


| const TargetPhrase& Moses::Hypothesis::GetCurrTargetPhrase | ( | ) | const [inline] |
return target phrase used to create this hypothesis
Definition at line 121 of file Hypothesis.h.
References m_targetPhrase.
Referenced by Moses::Manager::CalcDecoderStatistics(), Moses::SyntacticLanguageModel::Evaluate(), GetOutputFactors(), GetOutputWords(), Moses::TrellisPath::GetTargetPhrase(), LatticeMBRSolution::LatticeMBRSolution(), OutputAlignment(), OutputBestHypo(), OutputNBest(), Moses::OutputSearchNode(), OutputSurface(), Moses::OutputWordGraph(), pruneLatticeFB(), and ToStream().

| const WordsRange& Moses::Hypothesis::GetCurrTargetWordsRange | ( | ) | const [inline] |
Definition at line 132 of file Hypothesis.h.
References m_currTargetWordsRange.
Referenced by Moses::SentenceStats::AddDeletedWords(), Create(), Moses::LanguageModelImplementation::Evaluate(), and GetWord().

| const Word& Moses::Hypothesis::GetCurrWord | ( | size_t | pos | ) | const [inline] |
curr - pos is relative from CURRENT hypothesis's starting index (ie, start of sentence would be some negative number, which is not allowed- USE WITH CAUTION)
Definition at line 175 of file Hypothesis.h.
References Moses::Phrase::GetWord(), and m_targetPhrase.
Referenced by GetWord().


| const Factor* Moses::Hypothesis::GetFactor | ( | size_t | pos, | |
| FactorType | factorType | |||
| ) | const [inline] |
Definition at line 190 of file Hypothesis.h.
References GetWord().

| int Moses::Hypothesis::GetId | ( | ) | const [inline] |
Definition at line 152 of file Hypothesis.h.
References m_id.
Referenced by Moses::HypothesisStackNormal::AddPrune(), Moses::HypothesisStackCubePruning::AddPrune(), IOWrapper::Backtrack(), Moses::Manager::CalcLatticeSamples(), calcNgramExpectations(), Moses::Manager::GetConnectedGraph(), Moses::Manager::GetWinnerConnectedGraph(), Moses::SGNReverseCompare::operator()(), Edge::operator<(), Moses::operator<<(), operator<<(), Moses::OutputSearchNode(), Moses::OutputWordGraph(), pruneLatticeFB(), Moses::HypothesisStackNormal::PruneToSize(), and Moses::HypothesisStackCubePruning::PruneToSize().

| const InputType& Moses::Hypothesis::GetInput | ( | ) | const [inline] |
Definition at line 115 of file Hypothesis.h.
References m_sourceInput.
Referenced by Moses::Manager::CalcDecoderStatistics(), Moses::DistortionScoreProducer::CalculateDistortionScore(), and OutputInput().

| std::vector<std::vector<unsigned int> >* Moses::Hypothesis::GetLMStats | ( | ) | const [inline] |
| Manager& Moses::Hypothesis::GetManager | ( | ) | const [inline] |
Definition at line 136 of file Hypothesis.h.
References m_manager.
Referenced by Moses::LanguageModelImplementation::Evaluate().

| size_t Moses::Hypothesis::GetNextStartPos | ( | const TranslationOption & | transOpt | ) | const |
target span that trans opt would populate if applied to this hypo. Used for alignment check
| static ObjectPool<Hypothesis>& Moses::Hypothesis::GetObjectPool | ( | ) | [inline, static] |
| const Hypothesis * Moses::Hypothesis::GetPrevHypo | ( | ) | const |
Definition at line 364 of file Hypothesis.cpp.
References m_prevHypo.
Referenced by Moses::SentenceStats::AddDeletedWords(), IOWrapper::Backtrack(), Moses::Manager::CalcDecoderStatistics(), Moses::Manager::CalcLatticeSamples(), Moses::DistortionScoreProducer::Evaluate(), Moses::Manager::GetConnectedGraph(), Moses::Manager::GetWinnerConnectedGraph(), GetWord(), OutputAlignment(), OutputInput(), Moses::OutputSearchNode(), OutputSurface(), Moses::OutputWordGraph(), TranslationAnalysis::PrintTranslationAnalysis(), pruneLatticeFB(), and Moses::TrellisPath::TrellisPath().

| float Moses::Hypothesis::GetScore | ( | ) | const [inline] |
Definition at line 236 of file Hypothesis.h.
References m_futureScore, and m_totalScore.
Referenced by Moses::Manager::CalcLatticeSamples(), Moses::SearchNormal::ExpandAllHypotheses(), Moses::HypothesisScoreOrdererWithDistortion::operator()(), Moses::HypothesisScoreOrdererNoDistortion::operator()(), Moses::OutputSearchNode(), and pruneLatticeFB().

| const ScoreComponentCollection& Moses::Hypothesis::GetScoreBreakdown | ( | ) | const [inline] |
Definition at line 230 of file Hypothesis.h.
References m_scoreBreakdown.
Referenced by Moses::TrellisPath::InitScore(), Moses::OutputSearchNode(), Moses::OutputWordGraph(), and Moses::TrellisPath::TrellisPath().

| size_t Moses::Hypothesis::GetSize | ( | ) | const [inline] |
length of the partial translation (from the start of the sentence)
Definition at line 159 of file Hypothesis.h.
References Moses::WordsRange::GetEndPos(), and m_currTargetWordsRange.
Referenced by Moses::LanguageModelImplementation::Evaluate(), and pruneLatticeFB().


| const Phrase* Moses::Hypothesis::GetSourcePhrase | ( | ) | const [inline] |
Definition at line 163 of file Hypothesis.h.
References m_sourcePhrase.
Referenced by Moses::SentenceStats::AddDeletedWords(), and OutputInput().

| std::string Moses::Hypothesis::GetSourcePhraseStringRep | ( | ) | const |
Definition at line 494 of file Hypothesis.cpp.
References Moses::StaticData::GetMaxNumFactors(), Moses::Input, and Moses::StaticData::Instance().

| std::string Moses::Hypothesis::GetSourcePhraseStringRep | ( | const std::vector< FactorType > | factorsToPrint | ) | const |
Referenced by Moses::OutputSearchNode(), and Moses::OutputWordGraph().

| std::string Moses::Hypothesis::GetTargetPhraseStringRep | ( | ) | const |
Definition at line 503 of file Hypothesis.cpp.
References Moses::StaticData::GetMaxNumFactors(), Moses::StaticData::Instance(), and Moses::Output.

| std::string Moses::Hypothesis::GetTargetPhraseStringRep | ( | const std::vector< FactorType > | factorsToPrint | ) | const |
| float Moses::Hypothesis::GetTotalScore | ( | ) | const [inline] |
Definition at line 233 of file Hypothesis.h.
References m_totalScore.
Referenced by Moses::HypothesisStackNormal::Add(), Moses::HypothesisStackCubePruning::Add(), Moses::HypothesisStackNormal::AddPrune(), Moses::HypothesisStackCubePruning::AddPrune(), Moses::SentenceStats::AddRecombination(), Moses::HypothesisStackNormal::GetBestHypothesis(), Moses::HypothesisStackCubePruning::GetBestHypothesis(), Moses::TrellisPath::InitScore(), Moses::BitmapContainerOrderer::operator()(), Moses::CompareHypothesisTotalScore::operator()(), Moses::HypothesisScoreOrderer::operator()(), Moses::QueueItemOrderer::operator()(), Moses::BitmapContainer::ProcessBestHypothesis(), Moses::HypothesisStackNormal::PruneToSize(), Moses::HypothesisStackCubePruning::PruneToSize(), and Moses::TrellisPath::TrellisPath().

| const TranslationOption& Moses::Hypothesis::GetTranslationOption | ( | ) | const [inline] |
Definition at line 250 of file Hypothesis.h.
References m_transOpt.
Referenced by Moses::LexicalReordering::Evaluate().

| const Hypothesis* Moses::Hypothesis::GetWinningHypo | ( | ) | const [inline] |
Definition at line 219 of file Hypothesis.h.
References m_winningHypo.
Referenced by Moses::TrellisPath::InitScore().

| const Word& Moses::Hypothesis::GetWord | ( | size_t | pos | ) | const [inline] |
recursive - pos is relative from start of sentence
Definition at line 182 of file Hypothesis.h.
References CHECK, GetCurrTargetWordsRange(), GetCurrWord(), GetPrevHypo(), Moses::WordsRange::GetStartPos(), and NULL.
Referenced by Moses::LanguageModelImplementation::Evaluate(), and GetFactor().


| const WordsBitmap& Moses::Hypothesis::GetWordsBitmap | ( | ) | const [inline] |
Definition at line 197 of file Hypothesis.h.
References m_sourceCompleted.
Referenced by Moses::HypothesisStackNormal::Add(), Moses::HypothesisStackCubePruning::AddHypothesesToBitmapContainers(), Moses::HypothesisStackCubePruning::AddInitial(), Moses::HypothesisStackNormal::AddPrune(), Moses::SentenceStats::AddRecombination(), ascendingCoverageCmp(), Moses::BackwardsEdge::BackwardsEdge(), calcNgramExpectations(), Moses::DistortionScoreProducer::Evaluate(), Moses::SearchNormal::ExpandAllHypotheses(), Moses::SearchNormal::ExpandHypothesis(), Moses::HypothesisScoreOrdererWithDistortion::operator()(), Moses::OutputSearchNode(), Moses::TranslationOption::Overlap(), Moses::SearchNormal::ProcessOneHypothesis(), and Moses::HypothesisStackNormal::PruneToSize().

| bool Moses::Hypothesis::IsSourceCompleted | ( | ) | const [inline] |
Definition at line 201 of file Hypothesis.h.
References Moses::WordsBitmap::IsComplete(), and m_sourceCompleted.
Referenced by Moses::LanguageModelImplementation::Evaluate().


| void Moses::Hypothesis::PrintHypothesis | ( | ) | const |
print hypothesis information for pharaoh-style logging
Definition at line 372 of file Hypothesis.cpp.
References end, Moses::WordsRange::GetEndPos(), Moses::Phrase::GetSize(), Moses::WordsRange::GetStartPos(), Moses::Phrase::GetSubString(), m_currSourceWordsRange, m_currTargetWordsRange, m_futureScore, m_id, m_prevHypo, m_scoreBreakdown, m_sourcePhrase, m_targetPhrase, m_totalScore, m_wordDeleted, NOT_FOUND, and TRACE_ERR.
Referenced by Moses::SearchNormal::ExpandHypothesis(), and Moses::BitmapContainer::ProcessBestHypothesis().


| int Moses::Hypothesis::RecombineCompare | ( | const Hypothesis & | compare | ) | const |
check, if two hypothesis can be recombined. this is actually a sorting function that allows us to keep an ordered list of hypotheses. This makes recombination much quicker.
Definition at line 234 of file Hypothesis.cpp.
References Moses::WordsBitmap::Compare(), m_ffStates, m_sourceCompleted, and NULL.
Referenced by Moses::HypothesisRecombinationOrderer::operator()().


| void Moses::Hypothesis::ResetScore | ( | ) |
Definition at line 255 of file Hypothesis.cpp.
References m_futureScore, m_scoreBreakdown, m_totalScore, and Moses::ScoreComponentCollection::ZeroAll().
Referenced by Hypothesis().


| void Moses::Hypothesis::SetWinningHypo | ( | const Hypothesis * | hypo | ) | [inline] |
Definition at line 216 of file Hypothesis.h.
References m_winningHypo.
Referenced by CleanupArcList().

| Moses::Hypothesis::TO_STRING | ( | ) |
| void Moses::Hypothesis::ToStream | ( | std::ostream & | out | ) | const [inline] |
Definition at line 207 of file Hypothesis.h.
References GetCurrTargetPhrase(), m_prevHypo, NULL, and ToStream().
Referenced by ToStream().


| std::ostream& operator<< | ( | std::ostream & | , | |
| const Hypothesis & | ||||
| ) | [friend] |
ArcList* Moses::Hypothesis::m_arcList [protected] |
Definition at line 84 of file Hypothesis.h.
Referenced by AddArc(), CleanupArcList(), GetArcList(), and ~Hypothesis().
WordsRange Moses::Hypothesis::m_currSourceWordsRange [protected] |
Definition at line 76 of file Hypothesis.h.
Referenced by GetCurrSourceWordsRange(), Hypothesis(), and PrintHypothesis().
WordsRange Moses::Hypothesis::m_currTargetWordsRange [protected] |
source word positions of the last phrase that was used to create this hypothesis
Definition at line 77 of file Hypothesis.h.
Referenced by CalcRemainingScore(), GetCurrTargetLength(), GetCurrTargetWordsRange(), GetSize(), and PrintHypothesis().
std::vector<const FFState*> Moses::Hypothesis::m_ffStates [protected] |
detailed score break-down by components (for instance language model, word penalty, etc)
Definition at line 82 of file Hypothesis.h.
Referenced by CalcScore(), Hypothesis(), RecombineCompare(), and ~Hypothesis().
float Moses::Hypothesis::m_futureScore [protected] |
score so far
Definition at line 80 of file Hypothesis.h.
Referenced by CalcExpectedScore(), CalcRemainingScore(), CalcScore(), GetScore(), PrintHypothesis(), and ResetScore().
int Moses::Hypothesis::m_id [protected] |
Manager& Moses::Hypothesis::m_manager [protected] |
Definition at line 86 of file Hypothesis.h.
Referenced by CalcExpectedScore(), CalcRemainingScore(), CalcScore(), GetManager(), and Hypothesis().
const Hypothesis* Moses::Hypothesis::m_prevHypo [protected] |
Definition at line 68 of file Hypothesis.h.
Referenced by CalcScore(), GetPrevHypo(), PrintHypothesis(), and ToStream().
estimated future cost to translate rest of sentence
Definition at line 81 of file Hypothesis.h.
Referenced by CalcExpectedScore(), CalcRemainingScore(), CalcScore(), GetScoreBreakdown(), PrintHypothesis(), and ResetScore().
WordsBitmap Moses::Hypothesis::m_sourceCompleted [protected] |
input sentence
Definition at line 72 of file Hypothesis.h.
Referenced by CalcExpectedScore(), CalcScore(), GetWordsBitmap(), Hypothesis(), IsSourceCompleted(), and RecombineCompare().
InputType const& Moses::Hypothesis::m_sourceInput [protected] |
keeps track of which words have been translated so far
Definition at line 75 of file Hypothesis.h.
Referenced by GetInput().
Phrase const* Moses::Hypothesis::m_sourcePhrase [protected] |
target phrase being created at the current decoding step
Definition at line 71 of file Hypothesis.h.
Referenced by GetSourcePhrase(), and PrintHypothesis().
const TargetPhrase& Moses::Hypothesis::m_targetPhrase [protected] |
backpointer to previous hypothesis (from which this one was created)
Definition at line 70 of file Hypothesis.h.
Referenced by CalcScore(), GetCurrFactor(), GetCurrTargetPhrase(), GetCurrWord(), and PrintHypothesis().
float Moses::Hypothesis::m_totalScore [protected] |
Definition at line 79 of file Hypothesis.h.
Referenced by CalcRemainingScore(), CalcScore(), GetScore(), GetTotalScore(), PrintHypothesis(), and ResetScore().
const TranslationOption* Moses::Hypothesis::m_transOpt [protected] |
all arcs that end at the same trellis point as this hypothesis
Definition at line 85 of file Hypothesis.h.
Referenced by CalcExpectedScore(), CalcScore(), and GetTranslationOption().
const Hypothesis* Moses::Hypothesis::m_winningHypo [protected] |
bool Moses::Hypothesis::m_wordDeleted [protected] |
target word positions of the last phrase that was used to create this hypothesis
Definition at line 78 of file Hypothesis.h.
Referenced by Hypothesis(), and PrintHypothesis().
ObjectPool<Hypothesis> Moses::Hypothesis::s_objectPool [static, protected] |
1.5.9