Edge Class Reference

#include <LatticeMBR.h>

Collaboration diagram for Edge:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Friends

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


Detailed Description

Definition at line 29 of file LatticeMBR.h.


Constructor & Destructor Documentation

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

Definition at line 38 of file LatticeMBR.h.


Member Function Documentation

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

Definition at line 42 of file LatticeMBR.h.

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

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 467 of file LatticeMBR.cpp.

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

Referenced by calcNgramExpectations().

Here is the call graph for this function:

Here is the caller graph for this function:

float Edge::GetScore (  )  const [inline]

Definition at line 50 of file LatticeMBR.h.

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

Here is the caller graph for this function:

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

Definition at line 46 of file LatticeMBR.h.

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 58 of file LatticeMBR.h.

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

size_t Edge::GetWordsSize (  )  const [inline]

Definition at line 54 of file LatticeMBR.h.

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

Definition at line 476 of file LatticeMBR.cpp.

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

Here is the call graph for this function:

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

Definition at line 70 of file LatticeMBR.h.

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 Mon Jul 2 00:30:23 2012 for Moses by  doxygen 1.5.9