NgramScores Class Reference

#include <LatticeMBR.h>

List of all members.

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)


Detailed Description

Data structure to hold the ngram scores as we traverse the lattice. Maps (hypo,ngram) to score

Definition at line 81 of file LatticeMBR.h.


Member Typedef Documentation

typedef std::map<const Phrase*, float>::const_iterator NgramScores::NodeScoreIterator

Iterate through ngrams for selected node

Definition at line 90 of file LatticeMBR.h.


Constructor & Destructor Documentation

NgramScores::NgramScores (  )  [inline]

Definition at line 84 of file LatticeMBR.h.


Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

NgramScores::NodeScoreIterator NgramScores::nodeBegin ( const Hypothesis node  ) 

Definition at line 65 of file LatticeMBR.cpp.

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

NgramScores::NodeScoreIterator NgramScores::nodeEnd ( const Hypothesis node  ) 

Definition at line 71 of file LatticeMBR.cpp.

Referenced by calcNgramExpectations().

Here is the caller graph for this function:


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

Generated on Wed Feb 8 07:04:09 2012 for Moses by  doxygen 1.5.9