#include <LatticeMBR.h>

Public Member Functions | |
| Edge (const Moses::Hypothesis *from, const Moses::Hypothesis *to, float score, const Moses::TargetPhrase &targetPhrase) | |
| const Moses::Hypothesis * | GetHeadNode () const |
| const Moses::Hypothesis * | GetTailNode () const |
| float | GetScore () const |
| size_t | GetWordsSize () const |
| const Moses::Phrase & | GetWords () const |
| const NgramHistory & | GetNgrams (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) |
Definition at line 29 of file LatticeMBR.h.
| 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.
| 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 | ) |
| 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().


| float Edge::GetScore | ( | ) | const [inline] |
Definition at line 50 of file LatticeMBR.h.
Referenced by calcNgramExpectations(), and operator<().

| const Moses::Hypothesis* Edge::GetTailNode | ( | ) | const [inline] |
Definition at line 46 of file LatticeMBR.h.
Referenced by calcNgramExpectations().

| const Moses::Phrase& Edge::GetWords | ( | ) | const [inline] |
Definition at line 58 of file LatticeMBR.h.
Referenced by calcNgramExpectations().

| size_t Edge::GetWordsSize | ( | ) | const [inline] |
Definition at line 54 of file LatticeMBR.h.
References Moses::Phrase::GetSize().
Referenced by calcNgramExpectations().


| bool Edge::operator< | ( | const Edge & | compare | ) | const |
Definition at line 476 of file LatticeMBR.cpp.
References Moses::Hypothesis::GetId(), and GetScore().

| 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().

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