Word Class Reference

#include <Word.h>

Inheritance diagram for Word:

Inheritance graph
[legend]
Collaboration diagram for Word:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Word (const Word &)
 Word (int pos, const std::string &str)
virtual ~Word ()
virtual bool IsNonTerm () const
std::string GetString () const
std::string GetString (int factor) const
int GetPos () const
void AddAlignment (const Word *other)
const std::set< const Word * > & GetAlignment () const
std::set< int > GetAlignmentIndex () const
void Output (std::ostream &out) const
std::string Debug () const
int CompareString (const Word &other) const

Protected Attributes

int m_pos
std::string m_str
std::set< const Word * > m_alignment


Detailed Description

Definition at line 14 of file Word.h.


Constructor & Destructor Documentation

Word::Word ( const Word  ) 

Word::Word ( int  pos,
const std::string &  str 
)

Definition at line 13 of file Word.cpp.

Word::~Word (  )  [virtual]

Definition at line 21 of file Word.cpp.


Member Function Documentation

void Word::AddAlignment ( const Word other  ) 

Definition at line 26 of file Word.cpp.

References m_alignment.

Referenced by AlignedSentence::PopulateAlignment().

Here is the caller graph for this function:

int Word::CompareString ( const Word other  )  const

Definition at line 55 of file Word.cpp.

References m_str.

std::string Word::Debug (  )  const [virtual]

Implements RuleSymbol.

Definition at line 50 of file Word.cpp.

References m_str.

Referenced by Phrase::Debug().

Here is the caller graph for this function:

const std::set<const Word *>& Word::GetAlignment (  )  const [inline]

Definition at line 37 of file Word.h.

References m_alignment.

Referenced by Rule::CreateAlignments(), and Rule::Prevalidate().

Here is the caller graph for this function:

std::set< int > Word::GetAlignmentIndex (  )  const

Definition at line 31 of file Word.cpp.

References GetPos(), and m_alignment.

Referenced by AlignedSentence::CreateConsistentPhrases(), and AlignedSentence::GetSourceAlignmentCount().

Here is the call graph for this function:

Here is the caller graph for this function:

int Word::GetPos (  )  const [inline]

Definition at line 31 of file Word.h.

References m_pos.

Referenced by GetAlignmentIndex().

Here is the caller graph for this function:

std::string Word::GetString ( int  factor  )  const

Definition at line 60 of file Word.cpp.

References m_str, and Moses::Tokenize().

Here is the call graph for this function:

std::string Word::GetString (  )  const [inline, virtual]

Implements RuleSymbol.

Definition at line 25 of file Word.h.

References m_str.

Referenced by Rule::NonTermContextFactor().

Here is the caller graph for this function:

virtual bool Word::IsNonTerm (  )  const [inline, virtual]

Implements RuleSymbol.

Definition at line 21 of file Word.h.

void Word::Output ( std::ostream &  out  )  const [virtual]

Implements RuleSymbol.

Definition at line 45 of file Word.cpp.

References m_str.


Member Data Documentation

std::set<const Word *> Word::m_alignment [protected]

Definition at line 51 of file Word.h.

Referenced by AddAlignment(), GetAlignment(), and GetAlignmentIndex().

int Word::m_pos [protected]

Definition at line 49 of file Word.h.

Referenced by GetPos().

std::string Word::m_str [protected]

Definition at line 50 of file Word.h.

Referenced by CompareString(), Debug(), GetString(), and Output().


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

Generated on Thu Jul 6 00:32:02 2017 for Moses by  doxygen 1.5.9