Moses::PDTimp Class 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 NeedAlignmentInfo (bool a)
bool NeedAlignmentInfo ()
void HasAlignmentInfo (bool a)
bool HasAlignmentInfo ()
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, std::vector< std::string > *wa) const
PPtr GetRoot ()
PPtr Extend (PPtr p, const std::string &w)
WordVocReadVoc (const std::string &filename)

Public Attributes

Data data
std::vector< OFF_T > srcOffsets
FILE * os
FILE * ot
WordVoc sv
WordVoc tv
ObjectPool< PPimppPool
bool needwordalign
bool haswordAlign
bool printwordalign


Detailed Description

Definition at line 160 of file PhraseDictionaryTree.cpp.


Member Typedef Documentation

Definition at line 163 of file PhraseDictionaryTree.cpp.

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

Definition at line 164 of file PhraseDictionaryTree.cpp.

Definition at line 231 of file PhraseDictionaryTree.cpp.

Definition at line 162 of file PhraseDictionaryTree.cpp.


Constructor & Destructor Documentation

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

Definition at line 180 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 183 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 248 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 272 of file PhraseDictionaryTree.cpp.

References CHECK, 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 209 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 268 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]

Definition at line 216 of file PhraseDictionaryTree.cpp.

References CHECK, Moses::fSeek(), OFF_T, Moses::TgtCands::readBin(), and Moses::TgtCands::readBinWithAlignment().

Referenced by Moses::PhraseDictionaryTree::GetTargetCandidates(), and Moses::PhraseDictionaryTree::PrintTargetCandidates().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 198 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Here is the caller graph for this function:

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

Definition at line 195 of file PhraseDictionaryTree.cpp.

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

Definition at line 192 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Here is the caller graph for this function:

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

Definition at line 189 of file PhraseDictionaryTree.cpp.

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

Here is the caller graph for this function:

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

Definition at line 347 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 205 of file PhraseDictionaryTree.cpp.

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

Definition at line 202 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  ) 

WordVoc* Moses::PDTimp::ReadVoc ( const std::string &  filename  ) 


Member Data Documentation

Definition at line 167 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 177 of file PhraseDictionaryTree.cpp.

Definition at line 177 of file PhraseDictionaryTree.cpp.

Definition at line 170 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 170 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 174 of file PhraseDictionaryTree.cpp.

Definition at line 178 of file PhraseDictionaryTree.cpp.

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

Definition at line 168 of file PhraseDictionaryTree.cpp.

Referenced by Read().


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

Generated on Sun May 26 00:32:25 2013 for Moses by  doxygen 1.5.9