Moses::Edge Class Reference

#include <LatticeMBR.h>

Collaboration diagram for Moses::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 32 of file LatticeMBR.h.


Constructor & Destructor Documentation

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

Definition at line 41 of file LatticeMBR.h.


Member Function Documentation

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

Definition at line 45 of file LatticeMBR.h.

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

Referenced by Moses::calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 469 of file LatticeMBR.cpp.

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

Referenced by Moses::calcNgramExpectations().

Here is the call graph for this function:

Here is the caller graph for this function:

float Moses::Edge::GetScore (  )  const [inline]

Definition at line 53 of file LatticeMBR.h.

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

Here is the caller graph for this function:

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

Definition at line 49 of file LatticeMBR.h.

Referenced by Moses::calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 61 of file LatticeMBR.h.

Referenced by Moses::calcNgramExpectations().

Here is the caller graph for this function:

size_t Moses::Edge::GetWordsSize (  )  const [inline]

Definition at line 57 of file LatticeMBR.h.

References Moses::Phrase::GetSize().

Referenced by Moses::calcNgramExpectations().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 478 of file LatticeMBR.cpp.

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

Here is the call graph for this function:

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

Definition at line 73 of file LatticeMBR.h.

References count.

Referenced by Moses::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 Thu Jul 6 00:33:19 2017 for Moses by  doxygen 1.5.9