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)


Detailed Description

Definition at line 31 of file LatticeMBR.h.


Constructor & Destructor Documentation

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

Definition at line 40 of file LatticeMBR.h.


Member Function Documentation

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

Definition at line 44 of file LatticeMBR.h.

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

Definition at line 466 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 52 of file LatticeMBR.h.

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

Here is the caller graph for this function:

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

Definition at line 48 of file LatticeMBR.h.

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 60 of file LatticeMBR.h.

Referenced by calcNgramExpectations().

Here is the caller graph for this function:

size_t Edge::GetWordsSize (  )  const [inline]

Definition at line 56 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 475 of file LatticeMBR.cpp.

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]

Definition at line 72 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 Tue Feb 7 18:04:08 2012 for Moses by  doxygen 1.5.9