#include <LatticeMBR.h>
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) |
Definition at line 102 of file LatticeMBR.h.
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().
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()().
const std::vector<Moses::Word>& MosesCmd::LatticeMBRSolution::GetWords | ( | ) | const [inline] |
Definition at line 110 of file LatticeMBR.h.