Moses::PhraseDictionaryTree Class Reference

#include <PhraseDictionaryTree.h>

Inheritance diagram for Moses::PhraseDictionaryTree:

Inheritance graph
[legend]
Collaboration diagram for Moses::PhraseDictionaryTree:

Collaboration graph
[legend]

List of all members.

Classes

class  PrefixPtr

Public Member Functions

 PhraseDictionaryTree (size_t numScoreComponent)
void UseWordAlignment (bool a)
bool UseWordAlignment ()
void PrintWordAlignment (bool a)
bool PrintWordAlignment ()
virtual ~PhraseDictionaryTree ()
DecodeType GetDecodeType () const
 returns whether this dictionary is to be used for Translate or Generate
size_t GetSize () const
int Create (std::istream &in, const std::string &outFileNamePrefix)
int Read (const std::string &fileNamePrefix)
void FreeMemory () const
void PrintTargetCandidates (const std::vector< std::string > &src, std::ostream &out) const
void GetTargetCandidates (const std::vector< std::string > &src, std::vector< StringTgtCand > &rv) const
void GetTargetCandidates (const std::vector< std::string > &src, std::vector< StringTgtCand > &rv, std::vector< std::string > &wa) const
PrefixPtr GetRoot () const
PrefixPtr Extend (PrefixPtr p, const std::string &s) const
void GetTargetCandidates (PrefixPtr p, std::vector< StringTgtCand > &rv) const
void GetTargetCandidates (PrefixPtr p, std::vector< StringTgtCand > &rv, std::vector< std::string > &wa) const
void PrintTargetCandidates (PrefixPtr p, std::ostream &out) const
std::string GetScoreProducerDescription (unsigned) const
std::string GetScoreProducerWeightShortName (unsigned) const


Detailed Description

Definition at line 36 of file PhraseDictionaryTree.h.


Constructor & Destructor Documentation

Moses::PhraseDictionaryTree::PhraseDictionaryTree ( size_t  numScoreComponent  ) 

Definition at line 351 of file PhraseDictionaryTree.cpp.

References OFF_T, and TRACE_ERR.

Moses::PhraseDictionaryTree::~PhraseDictionaryTree (  )  [virtual]

Definition at line 362 of file PhraseDictionaryTree.cpp.


Member Function Documentation

int Moses::PhraseDictionaryTree::Create ( std::istream &  in,
const std::string &  outFileNamePrefix 
)

PhraseDictionaryTree::PrefixPtr Moses::PhraseDictionaryTree::Extend ( PrefixPtr  p,
const std::string &  s 
) const

Definition at line 631 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::Extend().

Referenced by Moses::PDTAimp::CacheSource(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::PhraseDictionaryTree::FreeMemory (  )  const

Definition at line 385 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::FreeMemory().

Referenced by Moses::PDTAimp::CacheSource(), Moses::PDTAimp::CleanUp(), main(), and Moses::PDTimp::~PDTimp().

Here is the call graph for this function:

Here is the caller graph for this function:

DecodeType Moses::PhraseDictionaryTree::GetDecodeType (  )  const [inline, virtual]

returns whether this dictionary is to be used for Translate or Generate

Implements Moses::Dictionary.

Definition at line 55 of file PhraseDictionaryTree.h.

References Moses::Translate.

PhraseDictionaryTree::PrefixPtr Moses::PhraseDictionaryTree::GetRoot (  )  const

Definition at line 625 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::GetRoot().

Referenced by Moses::PDTAimp::CacheSource(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Moses::PhraseDictionaryTree::GetScoreProducerDescription ( unsigned   )  const

Definition at line 664 of file PhraseDictionaryTree.cpp.

std::string Moses::PhraseDictionaryTree::GetScoreProducerWeightShortName ( unsigned   )  const [inline]

Definition at line 126 of file PhraseDictionaryTree.h.

size_t Moses::PhraseDictionaryTree::GetSize (  )  const [inline]

Definition at line 58 of file PhraseDictionaryTree.h.

void Moses::PhraseDictionaryTree::GetTargetCandidates ( PrefixPtr  p,
std::vector< StringTgtCand > &  rv,
std::vector< std::string > &  wa 
) const

Definition at line 655 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::ConvertTgtCand(), and Moses::PDTimp::GetTargetCandidates().

Here is the call graph for this function:

void Moses::PhraseDictionaryTree::GetTargetCandidates ( PrefixPtr  p,
std::vector< StringTgtCand > &  rv 
) const

Definition at line 646 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::ConvertTgtCand(), and Moses::PDTimp::GetTargetCandidates().

Here is the call graph for this function:

void Moses::PhraseDictionaryTree::GetTargetCandidates ( const std::vector< std::string > &  src,
std::vector< StringTgtCand > &  rv,
std::vector< std::string > &  wa 
) const

Definition at line 406 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::ConvertTgtCand(), Moses::PDTimp::GetTargetCandidates(), LVoc< A, B >::index(), InvalidLabelId, and Moses::PDTimp::sv.

Here is the call graph for this function:

void Moses::PhraseDictionaryTree::GetTargetCandidates ( const std::vector< std::string > &  src,
std::vector< StringTgtCand > &  rv 
) const

Definition at line 391 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::ConvertTgtCand(), Moses::PDTimp::GetTargetCandidates(), LVoc< A, B >::index(), InvalidLabelId, and Moses::PDTimp::sv.

Referenced by Moses::PDTAimp::CacheSource(), Moses::PDTAimp::GetTargetPhraseCollection(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::PhraseDictionaryTree::PrintTargetCandidates ( PrefixPtr  p,
std::ostream &  out 
) const

Definition at line 636 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::GetTargetCandidates(), and Moses::PDTimp::PrintTgtCand().

Here is the call graph for this function:

void Moses::PhraseDictionaryTree::PrintTargetCandidates ( const std::vector< std::string > &  src,
std::ostream &  out 
) const

Definition at line 423 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::GetTargetCandidates(), LVoc< A, B >::index(), InvalidLabelId, Moses::PDTimp::PrintTgtCand(), Moses::PDTimp::sv, and TRACE_ERR.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::PhraseDictionaryTree::PrintWordAlignment (  ) 

Definition at line 380 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::PrintWordAlignment().

Referenced by Create().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::PhraseDictionaryTree::PrintWordAlignment ( bool  a  ) 

Definition at line 376 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::PrintWordAlignment().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int Moses::PhraseDictionaryTree::Read ( const std::string &  fileNamePrefix  ) 

Definition at line 618 of file PhraseDictionaryTree.cpp.

References OFF_T, Moses::PDTimp::Read(), and TRACE_ERR.

Referenced by Moses::PDTAimp::Create(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::PhraseDictionaryTree::UseWordAlignment (  ) 

Definition at line 371 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::UseWordAlignment().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::PhraseDictionaryTree::UseWordAlignment ( bool  a  ) 

Definition at line 367 of file PhraseDictionaryTree.cpp.

References Moses::PDTimp::UseWordAlignment().

Referenced by Moses::PDTAimp::Create(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:


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

Generated on Wed Feb 8 23:04:10 2012 for Moses by  doxygen 1.5.9