Moses::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

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

Read the words from the path

Definition at line 79 of file LatticeMBR.cpp.

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

Here is the call graph for this function:

Member Function Documentation

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

Initialise ngram scores

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

Definition at line 113 of file LatticeMBR.h.

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

Definition at line 107 of file LatticeMBR.h.

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

Definition at line 116 of file LatticeMBR.h.

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

Here is the caller graph for this function:

const std::vector<Moses::Word>& Moses::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 Jul 6 00:33:19 2017 for Moses by  doxygen 1.5.9