#include <LatticeMBR.h>
Public Types | |
| typedef std::map< const Phrase *, float >::const_iterator | NodeScoreIterator |
Public Member Functions | |
| NgramScores () | |
| void | addScore (const Hypothesis *node, const Phrase &ngram, float score) |
| NodeScoreIterator | nodeBegin (const Hypothesis *node) |
| NodeScoreIterator | nodeEnd (const Hypothesis *node) |
Definition at line 81 of file LatticeMBR.h.
| typedef std::map<const Phrase*, float>::const_iterator NgramScores::NodeScoreIterator |
Iterate through ngrams for selected node
Definition at line 90 of file LatticeMBR.h.
| NgramScores::NgramScores | ( | ) | [inline] |
Definition at line 84 of file LatticeMBR.h.
| void NgramScores::addScore | ( | const Hypothesis * | node, | |
| const Phrase & | ngram, | |||
| float | score | |||
| ) |
logsum this score to the existing score
Definition at line 50 of file LatticeMBR.cpp.
References Moses::log_sum().
Referenced by calcNgramExpectations().


| NgramScores::NodeScoreIterator NgramScores::nodeBegin | ( | const Hypothesis * | node | ) |
Definition at line 65 of file LatticeMBR.cpp.
Referenced by calcNgramExpectations().

| NgramScores::NodeScoreIterator NgramScores::nodeEnd | ( | const Hypothesis * | node | ) |
Definition at line 71 of file LatticeMBR.cpp.
Referenced by calcNgramExpectations().

1.5.9