MosesCmd::Edge Class Reference

#include <LatticeMBR.h>

Collaboration diagram for MosesCmd::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

MosesCmd::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* MosesCmd::Edge::GetHeadNode (  )  const [inline]

Definition at line 45 of file LatticeMBR.h.

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

Referenced by MosesCmd::calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 470 of file LatticeMBR.cpp.

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

Referenced by MosesCmd::calcNgramExpectations().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 53 of file LatticeMBR.h.

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

Here is the caller graph for this function:

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

Definition at line 49 of file LatticeMBR.h.

Referenced by MosesCmd::calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 61 of file LatticeMBR.h.

Referenced by MosesCmd::calcNgramExpectations().

Here is the caller graph for this function:

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

Definition at line 57 of file LatticeMBR.h.

References Moses::Phrase::GetSize().

Referenced by MosesCmd::calcNgramExpectations().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 479 of file LatticeMBR.cpp.

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

Here is the call graph for this function:

void MosesCmd::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 MosesCmd::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 Jun 4 00:32:57 2015 for Moses by  doxygen 1.5.9