AlignedSentence Class Reference

#include <AlignedSentence.h>

Inheritance diagram for AlignedSentence:

Inheritance graph
[legend]
Collaboration diagram for AlignedSentence:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AlignedSentence (int lineNum)
 AlignedSentence (int lineNum, const std::string &source, const std::string &target, const std::string &alignment)
virtual ~AlignedSentence ()
virtual void Create (const Parameter &params)
const PhraseGetPhrase (Moses::FactorDirection direction) const
const ConsistentPhrasesGetConsistentPhrases () const
virtual std::string Debug () const

Public Attributes

int m_lineNum

Protected Member Functions

void CreateConsistentPhrases (const Parameter &params)
void PopulateWordVec (Phrase &vec, const std::string &line)
void PopulateAlignment (const std::string &line)
std::vector< int > GetSourceAlignmentCount () const

Protected Attributes

Phrase m_source
Phrase m_target
ConsistentPhrases m_consistentPhrases


Detailed Description

Definition at line 17 of file AlignedSentence.h.


Constructor & Destructor Documentation

AlignedSentence::AlignedSentence ( int  lineNum  )  [inline]

Definition at line 20 of file AlignedSentence.h.

AlignedSentence::AlignedSentence ( int  lineNum,
const std::string &  source,
const std::string &  target,
const std::string &  alignment 
)

Definition at line 17 of file AlignedSentence.cpp.

References m_source, m_target, PopulateAlignment(), and PopulateWordVec().

Here is the call graph for this function:

AlignedSentence::~AlignedSentence (  )  [virtual]

Definition at line 28 of file AlignedSentence.cpp.

References m_source, m_target, and Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

void AlignedSentence::Create ( const Parameter params  )  [virtual]

Reimplemented in AlignedSentenceSyntax.

Definition at line 108 of file AlignedSentence.cpp.

References ConsistentPhrases::AddHieroNonTerms(), CreateConsistentPhrases(), and m_consistentPhrases.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void AlignedSentence::CreateConsistentPhrases ( const Parameter params  )  [protected]

Definition at line 114 of file AlignedSentence.cpp.

References ConsistentPhrases::Add(), Word::GetAlignmentIndex(), GetSourceAlignmentCount(), ConsistentPhrases::Initialize(), m_consistentPhrases, m_source, m_target, Parameter::maxSpan, and Parameter::minSpan.

Referenced by AlignedSentenceSyntax::Create(), and Create().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 75 of file AlignedSentence.cpp.

References ConsistentPhrases::Debug(), Phrase::Debug(), m_consistentPhrases, m_lineNum, m_source, and m_target.

Referenced by PopulateAlignment().

Here is the call graph for this function:

Here is the caller graph for this function:

const ConsistentPhrases& AlignedSentence::GetConsistentPhrases (  )  const [inline]

Definition at line 35 of file AlignedSentence.h.

References m_consistentPhrases.

Referenced by Rules::Extend().

Here is the caller graph for this function:

const Phrase& AlignedSentence::GetPhrase ( Moses::FactorDirection  direction  )  const [inline]

Definition at line 31 of file AlignedSentence.h.

References Moses::Input, m_source, and m_target.

Referenced by Rule::ContainTerm(), Rule::CreateSource(), Rule::CreateTarget(), Rules::Extend(), and Rule::NonTermContext().

Here is the caller graph for this function:

std::vector< int > AlignedSentence::GetSourceAlignmentCount (  )  const [protected]

Definition at line 97 of file AlignedSentence.cpp.

References Word::GetAlignmentIndex(), and m_source.

Referenced by CreateConsistentPhrases().

Here is the call graph for this function:

Here is the caller graph for this function:

void AlignedSentence::PopulateAlignment ( const std::string &  line  )  [protected]

Definition at line 47 of file AlignedSentence.cpp.

References Word::AddAlignment(), Debug(), m_source, m_target, and Moses::Tokenize().

Referenced by AlignedSentence(), and AlignedSentenceSyntax::Create().

Here is the call graph for this function:

Here is the caller graph for this function:

void AlignedSentence::PopulateWordVec ( Phrase vec,
const std::string &  line 
) [protected]

Definition at line 34 of file AlignedSentence.cpp.

References Moses::Tokenize().

Referenced by AlignedSentence().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 41 of file AlignedSentence.h.

Referenced by Debug().


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

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