#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.
| 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().

| 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()().

| const std::vector<Moses::Word>& Moses::LatticeMBRSolution::GetWords | ( | ) | const [inline] |
Definition at line 110 of file LatticeMBR.h.
1.5.9