Moses::PDTimp Struct Reference

Collaboration diagram for Moses::PDTimp:

Collaboration graph
[legend]

List of all members.

Public Types

typedef PrefixTreeF< LabelId,
OFF_T > 
PTF
typedef FilePtr< PTFCPT
typedef std::vector< CPTData
typedef
PhraseDictionaryTree::PrefixPtr 
PPtr

Public Member Functions

 PDTimp ()
 ~PDTimp ()
void UseWordAlignment (bool a)
bool UseWordAlignment ()
void PrintWordAlignment (bool a)
bool PrintWordAlignment ()
void FreeMemory ()
int Read (const std::string &fn)
void GetTargetCandidates (const IPhrase &f, TgtCands &tgtCands)
void GetTargetCandidates (PPtr p, TgtCands &tgtCands)
void PrintTgtCand (const TgtCands &tcands, std::ostream &out) const
void ConvertTgtCand (const TgtCands &tcands, std::vector< StringTgtCand > &rv) const
void ConvertTgtCand (const TgtCands &tcands, std::vector< StringTgtCand > &rv, std::vector< std::string > &wa) const
PPtr GetRoot ()
PPtr Extend (PPtr p, const std::string &w)

Public Attributes

Data data
std::vector< OFF_T > srcOffsets
FILE * os
FILE * ot
WordVocsv
WordVoctv
ObjectPool< PPimppPool
bool usewordalign
bool printwordalign


Detailed Description

Definition at line 139 of file PhraseDictionaryTree.cpp.


Member Typedef Documentation

Definition at line 141 of file PhraseDictionaryTree.cpp.

typedef std::vector<CPT> Moses::PDTimp::Data

Definition at line 142 of file PhraseDictionaryTree.cpp.

Definition at line 201 of file PhraseDictionaryTree.cpp.

Definition at line 140 of file PhraseDictionaryTree.cpp.


Constructor & Destructor Documentation

Moses::PDTimp::PDTimp (  )  [inline]

Definition at line 158 of file PhraseDictionaryTree.cpp.

References Moses::PrefixTreeF< T, D >::setDefault().

Here is the call graph for this function:

Moses::PDTimp::~PDTimp (  )  [inline]

Definition at line 161 of file PhraseDictionaryTree.cpp.

References Moses::fClose(), and Moses::PhraseDictionaryTree::FreeMemory().

Here is the call graph for this function:


Member Function Documentation

void Moses::PDTimp::ConvertTgtCand ( const TgtCands tcands,
std::vector< StringTgtCand > &  rv,
std::vector< std::string > &  wa 
) const [inline]

Definition at line 228 of file PhraseDictionaryTree.cpp.

void Moses::PDTimp::ConvertTgtCand ( const TgtCands tcands,
std::vector< StringTgtCand > &  rv 
) const [inline]

Definition at line 216 of file PhraseDictionaryTree.cpp.

Referenced by Moses::PhraseDictionaryTree::GetTargetCandidates().

Here is the caller graph for this function:

PPtr Moses::PDTimp::Extend ( PPtr  p,
const std::string &  w 
) [inline]

Definition at line 246 of file PhraseDictionaryTree.cpp.

References EPSILON, Moses::PrefixTreeF< T, D >::getPtr(), Moses::PPimp::idx, InvalidLabelId, Moses::PPimp::isRoot(), and Moses::PPimp::ptr().

Referenced by Moses::PhraseDictionaryTree::Extend().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::PDTimp::FreeMemory (  )  [inline]

Definition at line 181 of file PhraseDictionaryTree.cpp.

Referenced by Moses::PhraseDictionaryTree::FreeMemory().

Here is the caller graph for this function:

PPtr Moses::PDTimp::GetRoot (  )  [inline]

Definition at line 242 of file PhraseDictionaryTree.cpp.

Referenced by Moses::PhraseDictionaryTree::GetRoot().

Here is the caller graph for this function:

void Moses::PDTimp::GetTargetCandidates ( PPtr  p,
TgtCands tgtCands 
) [inline]

void Moses::PDTimp::GetTargetCandidates ( const IPhrase f,
TgtCands tgtCands 
) [inline]

void Moses::PDTimp::PrintTgtCand ( const TgtCands tcands,
std::ostream &  out 
) const

Definition at line 328 of file PhraseDictionaryTree.cpp.

References LVoc< A, B >::symbol(), and tv.

Referenced by Moses::PhraseDictionaryTree::PrintTargetCandidates().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::PDTimp::PrintWordAlignment (  )  [inline]

Definition at line 177 of file PhraseDictionaryTree.cpp.

void Moses::PDTimp::PrintWordAlignment ( bool  a  )  [inline]

Definition at line 174 of file PhraseDictionaryTree.cpp.

Referenced by Moses::PhraseDictionaryTree::PrintWordAlignment().

Here is the caller graph for this function:

int Moses::PDTimp::Read ( const std::string &  fn  ) 

Definition at line 274 of file PhraseDictionaryTree.cpp.

References Moses::UserMessage::Add(), data, Moses::fClose(), Moses::FileExists(), Moses::fOpen(), Moses::fReadVector(), Moses::PrefixTreeF< T, D >::getDefault(), os, ot, srcOffsets, sv, TRACE_ERR, tv, and UseWordAlignment().

Referenced by Moses::PhraseDictionaryTree::Read().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::PDTimp::UseWordAlignment (  )  [inline]

Definition at line 170 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Here is the caller graph for this function:

void Moses::PDTimp::UseWordAlignment ( bool  a  )  [inline]

Definition at line 167 of file PhraseDictionaryTree.cpp.

Referenced by Moses::PhraseDictionaryTree::UseWordAlignment().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 145 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 148 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 148 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 152 of file PhraseDictionaryTree.cpp.

Definition at line 156 of file PhraseDictionaryTree.cpp.

std::vector<OFF_T> Moses::PDTimp::srcOffsets

Definition at line 146 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 155 of file PhraseDictionaryTree.cpp.


The documentation for this struct was generated from the following file:

Generated on Sun Jul 24 00:04:17 2011 for Moses by  doxygen 1.5.9