#include <ConsistentPhrases.h>
Public Types | |
typedef std::set < ConsistentPhrase * > | Coll |
Public Member Functions | |
ConsistentPhrases () | |
virtual | ~ConsistentPhrases () |
void | Initialize (size_t size) |
void | Add (int sourceStart, int sourceEnd, int targetStart, int targetEnd, const Parameter ¶ms) |
void | AddHieroNonTerms (const Parameter ¶ms) |
const Coll & | GetColl (int sourceStart, int sourceEnd) const |
Coll & | GetColl (int sourceStart, int sourceEnd) |
std::string | Debug () const |
Protected Attributes | |
std::vector< std::vector< Coll > > | m_coll |
Definition at line 17 of file ConsistentPhrases.h.
typedef std::set<ConsistentPhrase*> ConsistentPhrases::Coll |
Definition at line 20 of file ConsistentPhrases.h.
ConsistentPhrases::ConsistentPhrases | ( | ) |
Definition at line 16 of file ConsistentPhrases.cpp.
ConsistentPhrases::~ConsistentPhrases | ( | ) | [virtual] |
Definition at line 20 of file ConsistentPhrases.cpp.
References m_coll, and Moses::RemoveAllInColl().
void ConsistentPhrases::Add | ( | int | sourceStart, | |
int | sourceEnd, | |||
int | targetStart, | |||
int | targetEnd, | |||
const Parameter & | params | |||
) |
Definition at line 42 of file ConsistentPhrases.cpp.
References m_coll.
Referenced by AlignedSentence::CreateConsistentPhrases().
void ConsistentPhrases::AddHieroNonTerms | ( | const Parameter & | params | ) |
Definition at line 89 of file ConsistentPhrases.cpp.
References ConsistentPhrase::AddNonTerms(), Parameter::hieroNonTerm, and m_coll.
Referenced by AlignedSentence::Create().
std::string ConsistentPhrases::Debug | ( | ) | const |
Definition at line 69 of file ConsistentPhrases.cpp.
References ConsistentPhrase::Debug(), and m_coll.
Referenced by AlignedSentence::Debug().
ConsistentPhrases::Coll & ConsistentPhrases::GetColl | ( | int | sourceStart, | |
int | sourceEnd | |||
) |
const ConsistentPhrases::Coll & ConsistentPhrases::GetColl | ( | int | sourceStart, | |
int | sourceEnd | |||
) | const |
Definition at line 55 of file ConsistentPhrases.cpp.
References m_coll.
Referenced by AlignedSentenceSyntax::CreateNonTerms(), and Rules::Extend().
void ConsistentPhrases::Initialize | ( | size_t | size | ) |
Definition at line 32 of file ConsistentPhrases.cpp.
References m_coll.
Referenced by AlignedSentence::CreateConsistentPhrases().
std::vector< std::vector<Coll> > ConsistentPhrases::m_coll [protected] |
Definition at line 39 of file ConsistentPhrases.h.
Referenced by Add(), AddHieroNonTerms(), Debug(), GetColl(), Initialize(), and ~ConsistentPhrases().