Edge Class Reference

#include <LatticeMBR.h>

Collaboration diagram for Edge:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Edge (const Hypothesis *from, const Hypothesis *to, float score, const TargetPhrase &targetPhrase)
const HypothesisGetHeadNode () const
const HypothesisGetTailNode () const
float GetScore () const
size_t GetWordsSize () const
const PhraseGetWords () const
const NgramHistoryGetNgrams (std::map< const Hypothesis *, std::vector< Edge > > &incomingEdges)
bool operator< (const Edge &compare) const
void GetPhraseSuffix (const Phrase &origPhrase, size_t lastN, Phrase &targetPhrase) const
void storeNgramHistory (const Phrase &phrase, Path &path, size_t count=1)

Friends

std::ostream & operator<< (std::ostream &out, const Edge &edge)


Constructor & Destructor Documentation

Edge::Edge ( const Hypothesis from,
const Hypothesis to,
float  score,
const TargetPhrase targetPhrase 
) [inline]


Member Function Documentation

const Hypothesis* Edge::GetHeadNode (  )  const [inline]

const NgramHistory& Edge::GetNgrams ( std::map< const Hypothesis *, std::vector< Edge > > &  incomingEdges  ) 

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

void Edge::GetPhraseSuffix ( const Phrase origPhrase,
size_t  lastN,
Phrase targetPhrase 
) const

References Moses::Phrase::AddWord(), Moses::Phrase::GetSize(), and Moses::Phrase::GetWord().

Referenced by calcNgramExpectations().

Here is the call graph for this function:

Here is the caller graph for this function:

float Edge::GetScore (  )  const [inline]

Referenced by calcNgramExpectations(), and operator<().

Here is the caller graph for this function:

const Hypothesis* Edge::GetTailNode (  )  const [inline]

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

const Phrase& Edge::GetWords (  )  const [inline]

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

size_t Edge::GetWordsSize (  )  const [inline]

References Moses::Phrase::GetSize().

Referenced by calcNgramExpectations().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Edge::operator< ( const Edge compare  )  const

References Moses::Hypothesis::GetId(), and GetScore().

Here is the call graph for this function:

void Edge::storeNgramHistory ( const Phrase phrase,
Path path,
size_t  count = 1 
) [inline]

Referenced by calcNgramExpectations().

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Edge edge 
) [friend]


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

Generated on Fri Jul 30 20:05:15 2010 for Moses by  doxygen 1.5.9