MosesCmd::LatticeMBRSolution Class Reference

#include <LatticeMBR.h>

List of all members.

Public Member Functions

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


Detailed Description

Holds a lattice mbr solution, and its scores

Definition at line 102 of file LatticeMBR.h.


Constructor & Destructor Documentation

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

Read the words from the path

Definition at line 80 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 MosesCmd::LatticeMBRSolution::CalcScore ( std::map< Moses::Phrase, float > &  finalNgramScores,
const std::vector< float > &  thetas,
float  mapWeight 
)

Initialise ngram scores

float MosesCmd::LatticeMBRSolution::GetMapScore (  )  const [inline]

Definition at line 113 of file LatticeMBR.h.

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

Definition at line 107 of file LatticeMBR.h.

float MosesCmd::LatticeMBRSolution::GetScore (  )  const [inline]

Definition at line 116 of file LatticeMBR.h.

Referenced by MosesCmd::LatticeMBRSolutionComparator::operator()().

Here is the caller graph for this function:

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

Definition at line 110 of file LatticeMBR.h.


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

Generated on Thu Jun 4 00:32:57 2015 for Moses by  doxygen 1.5.9