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 160 of file PhraseDictionaryTree.cpp.


Member Typedef Documentation

Definition at line 164 of file PhraseDictionaryTree.cpp.

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

Definition at line 165 of file PhraseDictionaryTree.cpp.

Definition at line 232 of file PhraseDictionaryTree.cpp.

Definition at line 163 of file PhraseDictionaryTree.cpp.


Constructor & Destructor Documentation

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

Definition at line 181 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 184 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 277 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 210 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 273 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 217 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 199 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 196 of file PhraseDictionaryTree.cpp.

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

Definition at line 193 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 190 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 352 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 206 of file PhraseDictionaryTree.cpp.

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

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

Referenced by Read().

Definition at line 178 of file PhraseDictionaryTree.cpp.

Definition at line 178 of file PhraseDictionaryTree.cpp.

Definition at line 171 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 171 of file PhraseDictionaryTree.cpp.

Referenced by Read().

Definition at line 175 of file PhraseDictionaryTree.cpp.

Definition at line 179 of file PhraseDictionaryTree.cpp.

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

Definition at line 169 of file PhraseDictionaryTree.cpp.

Referenced by Read().


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

Generated on Thu Oct 2 00:31:51 2014 for Moses by  doxygen 1.5.9