LatticeMBRSolution Class Reference

#include <LatticeMBR.h>

List of all members.

Public Member Functions

 LatticeMBRSolution (const TrellisPath &path, bool isMap)
const std::vector< float > & GetNgramScores () const
const std::vector< Word > & GetWords () const
float GetMapScore () const
float GetScore () const
void CalcScore (std::map< Phrase, float > &finalNgramScores, const std::vector< float > &thetas, float mapWeight)


Detailed Description

Holds a lattice mbr solution, and its scores

Definition at line 101 of file LatticeMBR.h.


Constructor & Destructor Documentation

LatticeMBRSolution::LatticeMBRSolution ( const TrellisPath path,
bool  isMap 
)

Read the words from the path

Definition at line 76 of file LatticeMBR.cpp.

References Moses::Hypothesis::GetCurrTargetPhrase(), Moses::TrellisPath::GetEdges(), Moses::Phrase::GetSize(), Moses::TrellisPath::GetTotalScore(), and Moses::Phrase::GetWord().

Here is the call graph for this function:


Member Function Documentation

void LatticeMBRSolution::CalcScore ( std::map< Phrase, float > &  finalNgramScores,
const std::vector< float > &  thetas,
float  mapWeight 
)

Initialise ngram scores

float LatticeMBRSolution::GetMapScore (  )  const [inline]

Definition at line 112 of file LatticeMBR.h.

const std::vector<float>& LatticeMBRSolution::GetNgramScores (  )  const [inline]

Definition at line 106 of file LatticeMBR.h.

float LatticeMBRSolution::GetScore (  )  const [inline]

Definition at line 115 of file LatticeMBR.h.

Referenced by LatticeMBRSolutionComparator::operator()().

Here is the caller graph for this function:

const std::vector<Word>& LatticeMBRSolution::GetWords (  )  const [inline]

Definition at line 109 of file LatticeMBR.h.


The documentation for this class was generated from the following files:

Generated on Wed Feb 8 22:04:08 2012 for Moses by  doxygen 1.5.9