#include <ConsistentPhrase.h>
Public Types | |
typedef std::vector< NonTerm > | NonTerms |
Public Member Functions | |
ConsistentPhrase (const ConsistentPhrase ©) | |
ConsistentPhrase (int sourceStart, int sourceEnd, int targetStart, int targetEnd, const Parameter ¶ms) | |
virtual | ~ConsistentPhrase () |
int | GetWidth (Moses::FactorDirection direction) const |
void | AddNonTerms (const std::string &source, const std::string &target) |
const NonTerms & | GetNonTerms () const |
const NonTerm & | GetHieroNonTerm () 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 |
Definition at line 16 of file ConsistentPhrase.h.
typedef std::vector<NonTerm> ConsistentPhrase::NonTerms |
Definition at line 19 of file ConsistentPhrase.h.
ConsistentPhrase::ConsistentPhrase | ( | const ConsistentPhrase & | copy | ) |
ConsistentPhrase::ConsistentPhrase | ( | int | sourceStart, | |
int | sourceEnd, | |||
int | targetStart, | |||
int | targetEnd, | |||
const Parameter & | params | |||
) |
ConsistentPhrase::~ConsistentPhrase | ( | ) | [virtual] |
Definition at line 28 of file ConsistentPhrase.cpp.
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().
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().
const NonTerm& ConsistentPhrase::GetHieroNonTerm | ( | ) | const [inline] |
Definition at line 40 of file ConsistentPhrase.h.
References m_hieroNonTerm.
Referenced by Rules::CreateRules().
const NonTerms& ConsistentPhrase::GetNonTerms | ( | ) | const [inline] |
Definition at line 37 of file ConsistentPhrase.h.
References m_nonTerms.
Referenced by Rules::CreateRules(), and Rules::Extend().
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().
bool ConsistentPhrase::operator< | ( | const ConsistentPhrase & | other | ) | const |
bool ConsistentPhrase::TargetOverlap | ( | const ConsistentPhrase & | other | ) | const |
Definition at line 44 of file ConsistentPhrase.cpp.
References corners.
Referenced by Rule::Prevalidate().
std::vector<int> ConsistentPhrase::corners |
Definition at line 21 of file ConsistentPhrase.h.
Referenced by CompareTargetNonTerms(), ConsistentPhrase(), Rule::ContainTerm(), AlignedSentenceSyntax::CreateNonTerms(), Rule::CreateSource(), Rule::CreateTarget(), Debug(), Rules::Extend(), Rule::GetNextSourcePosForNonTerm(), GetWidth(), Rule::NonTermContext(), operator<(), Rule::Prevalidate(), and TargetOverlap().
NonTerm ConsistentPhrase::m_hieroNonTerm [protected] |
NonTerms ConsistentPhrase::m_nonTerms [protected] |
Definition at line 51 of file ConsistentPhrase.h.
Referenced by AddNonTerms(), Debug(), and GetNonTerms().