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 > &extTgtCands, 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 162 of file PhraseDictionaryTree.cpp.


Member Typedef Documentation

Definition at line 166 of file PhraseDictionaryTree.cpp.

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

Definition at line 167 of file PhraseDictionaryTree.cpp.

Definition at line 234 of file PhraseDictionaryTree.cpp.

Definition at line 165 of file PhraseDictionaryTree.cpp.


Constructor & Destructor Documentation

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

Definition at line 183 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 186 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 > &  extTgtCands,
std::vector< std::string > *  wa 
) const [inline]

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

Definition at line 282 of file PhraseDictionaryTree.cpp.

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

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 212 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 278 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 219 of file PhraseDictionaryTree.cpp.

References 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 201 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 198 of file PhraseDictionaryTree.cpp.

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

Definition at line 195 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 192 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 358 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 208 of file PhraseDictionaryTree.cpp.

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

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

References data, Moses::fClose(), Moses::FileExists(), Moses::fOpen(), Moses::fReadVector(), Moses::PrefixTreeF< T, D >::getDefault(), HasAlignmentInfo(), NeedAlignmentInfo(), os, ot, LVoc< A, B >::Read(), srcOffsets, sv, tv, and VERBOSE.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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


Member Data Documentation

Definition at line 170 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 180 of file PhraseDictionaryTree.cpp.

Definition at line 180 of file PhraseDictionaryTree.cpp.

Definition at line 173 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 173 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 177 of file PhraseDictionaryTree.cpp.

Definition at line 181 of file PhraseDictionaryTree.cpp.

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

Definition at line 171 of file PhraseDictionaryTree.cpp.

Referenced by Read().


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

Generated on Mon Jul 6 00:33:58 2015 for Moses by  doxygen 1.5.9