ConsistentPhrase Class Reference

#include <ConsistentPhrase.h>

Collaboration diagram for ConsistentPhrase:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< NonTermNonTerms

Public Member Functions

 ConsistentPhrase (const ConsistentPhrase &copy)
 ConsistentPhrase (int sourceStart, int sourceEnd, int targetStart, int targetEnd, const Parameter &params)
virtual ~ConsistentPhrase ()
int GetWidth (Moses::FactorDirection direction) const
void AddNonTerms (const std::string &source, const std::string &target)
const NonTermsGetNonTerms () const
const NonTermGetHieroNonTerm () const
bool TargetOverlap (const ConsistentPhrase &other) const
bool operator< (const ConsistentPhrase &other) const
std::string Debug () const

Public Attributes

std::vector< int > corners

Protected Attributes

NonTerms m_nonTerms
NonTerm m_hieroNonTerm


Detailed Description

Definition at line 16 of file ConsistentPhrase.h.


Member Typedef Documentation

typedef std::vector<NonTerm> ConsistentPhrase::NonTerms

Definition at line 19 of file ConsistentPhrase.h.


Constructor & Destructor Documentation

ConsistentPhrase::ConsistentPhrase ( const ConsistentPhrase copy  ) 

ConsistentPhrase::ConsistentPhrase ( int  sourceStart,
int  sourceEnd,
int  targetStart,
int  targetEnd,
const Parameter params 
)

Definition at line 15 of file ConsistentPhrase.cpp.

References corners.

ConsistentPhrase::~ConsistentPhrase (  )  [virtual]

Definition at line 28 of file ConsistentPhrase.cpp.


Member Function Documentation

void ConsistentPhrase::AddNonTerms ( const std::string &  source,
const std::string &  target 
)

Definition at line 38 of file ConsistentPhrase.cpp.

References m_nonTerms.

Referenced by ConsistentPhrases::AddHieroNonTerms(), and AlignedSentenceSyntax::CreateNonTerms().

Here is the caller graph for this function:

std::string ConsistentPhrase::Debug (  )  const

Definition at line 52 of file ConsistentPhrase.cpp.

References corners, NonTerm::GetLabel(), Moses::Input, m_nonTerms, and Moses::Output.

Referenced by NonTerm::Debug(), and ConsistentPhrases::Debug().

Here is the call graph for this function:

Here is the caller graph for this function:

const NonTerm& ConsistentPhrase::GetHieroNonTerm (  )  const [inline]

Definition at line 40 of file ConsistentPhrase.h.

References m_hieroNonTerm.

Referenced by Rules::CreateRules().

Here is the caller graph for this function:

const NonTerms& ConsistentPhrase::GetNonTerms (  )  const [inline]

Definition at line 37 of file ConsistentPhrase.h.

References m_nonTerms.

Referenced by Rules::CreateRules(), and Rules::Extend().

Here is the caller graph for this function:

int ConsistentPhrase::GetWidth ( Moses::FactorDirection  direction  )  const [inline]

Definition at line 30 of file ConsistentPhrase.h.

References corners, and Moses::Input.

Referenced by Rule::CreateProperties(), NonTerm::GetWidth(), and Rule::Prevalidate().

Here is the caller graph for this function:

bool ConsistentPhrase::operator< ( const ConsistentPhrase other  )  const

Definition at line 33 of file ConsistentPhrase.cpp.

References corners.

bool ConsistentPhrase::TargetOverlap ( const ConsistentPhrase other  )  const

Definition at line 44 of file ConsistentPhrase.cpp.

References corners.

Referenced by Rule::Prevalidate().

Here is the caller graph for this function:


Member Data Documentation

std::vector<int> ConsistentPhrase::corners

Definition at line 52 of file ConsistentPhrase.h.

Referenced by GetHieroNonTerm().

Definition at line 51 of file ConsistentPhrase.h.

Referenced by AddNonTerms(), Debug(), and GetNonTerms().


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:31:46 2017 for Moses by  doxygen 1.5.9