#include <NonTerm.h>
Public Member Functions | |
NonTerm (const ConsistentPhrase &consistentPhrase, const std::string &source, const std::string &target) | |
virtual | ~NonTerm () |
const ConsistentPhrase & | GetConsistentPhrase () const |
int | GetWidth (Moses::FactorDirection direction) const |
virtual bool | IsNonTerm () const |
std::string | GetString () const |
virtual std::string | Debug () const |
virtual void | Output (std::ostream &out) const |
void | Output (std::ostream &out, Moses::FactorDirection direction) const |
const std::string & | GetLabel (Moses::FactorDirection direction) const |
bool | IsHiero (Moses::FactorDirection direction, const Parameter ¶ms) const |
bool | IsHiero (const Parameter ¶ms) const |
Protected Attributes | |
const ConsistentPhrase * | m_consistentPhrase |
std::string | m_source |
std::string | m_target |
Definition at line 15 of file NonTerm.h.
NonTerm::NonTerm | ( | const ConsistentPhrase & | consistentPhrase, | |
const std::string & | source, | |||
const std::string & | target | |||
) |
Definition at line 16 of file NonTerm.cpp.
NonTerm::~NonTerm | ( | ) | [virtual] |
Definition at line 27 of file NonTerm.cpp.
std::string NonTerm::Debug | ( | ) | const [virtual] |
Implements RuleSymbol.
Definition at line 32 of file NonTerm.cpp.
References ConsistentPhrase::Debug(), m_consistentPhrase, m_source, and m_target.
Referenced by Rule::Debug().
const ConsistentPhrase& NonTerm::GetConsistentPhrase | ( | ) | const [inline] |
Definition at line 24 of file NonTerm.h.
References m_consistentPhrase.
Referenced by CompareTargetNonTerms(), Rule::CreateProperties(), Rule::CreateSource(), Rule::CreateTarget(), Rule::GetConsistentPhrase(), Rule::GetNextSourcePosForNonTerm(), GetWidth(), and Rule::Prevalidate().
const std::string & NonTerm::GetLabel | ( | Moses::FactorDirection | direction | ) | const |
Definition at line 50 of file NonTerm.cpp.
References Moses::Input, m_source, and m_target.
Referenced by ConsistentPhrase::Debug(), IsHiero(), and Output().
std::string NonTerm::GetString | ( | ) | const [inline, virtual] |
Implements RuleSymbol.
Definition at line 34 of file NonTerm.h.
References m_source, and m_target.
Referenced by CompareRules::operator()().
int NonTerm::GetWidth | ( | Moses::FactorDirection | direction | ) | const |
Definition at line 66 of file NonTerm.cpp.
References GetConsistentPhrase(), and ConsistentPhrase::GetWidth().
Referenced by Rule::Prevalidate().
bool NonTerm::IsHiero | ( | const Parameter & | params | ) | const |
Definition at line 61 of file NonTerm.cpp.
References Moses::Input, IsHiero(), and Moses::Output.
bool NonTerm::IsHiero | ( | Moses::FactorDirection | direction, | |
const Parameter & | params | |||
) | const |
Definition at line 55 of file NonTerm.cpp.
References GetLabel(), and Parameter::hieroNonTerm.
Referenced by Rule::GetScope(), IsHiero(), and Rule::Prevalidate().
virtual bool NonTerm::IsNonTerm | ( | ) | const [inline, virtual] |
void NonTerm::Output | ( | std::ostream & | out, | |
Moses::FactorDirection | direction | |||
) | const |
Definition at line 45 of file NonTerm.cpp.
References GetLabel().
void NonTerm::Output | ( | std::ostream & | out | ) | const [virtual] |
Implements RuleSymbol.
Definition at line 40 of file NonTerm.cpp.
References m_source, and m_target.
Referenced by Rule::Output().
const ConsistentPhrase* NonTerm::m_consistentPhrase [protected] |
std::string NonTerm::m_source [protected] |
Definition at line 48 of file NonTerm.h.
Referenced by Debug(), GetLabel(), GetString(), and Output().
std::string NonTerm::m_target [protected] |
Definition at line 48 of file NonTerm.h.
Referenced by Debug(), GetLabel(), GetString(), and Output().