Moses::PhraseDictionaryTreeAdaptor Class Reference

#include <PhraseDictionaryTreeAdaptor.h>

Inheritance diagram for Moses::PhraseDictionaryTreeAdaptor:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionaryTreeAdaptor (size_t numScoreComponent, unsigned numInputScores, const PhraseDictionaryFeature *feature)
virtual ~PhraseDictionaryTreeAdaptor ()
void EnableCache ()
void DisableCache ()
bool Load (const std::vector< FactorType > &input, const std::vector< FactorType > &output, const std::string &filePath, const std::vector< float > &weight, size_t tableLimit, const LMList &languageModels, float weightWP)
TargetPhraseCollection const * GetTargetPhraseCollection (Phrase const &src) const
 find list of translations that can translates src. Only for phrase input
TargetPhraseCollection const * GetTargetPhraseCollection (InputType const &src, WordsRange const &srcRange) const
 find list of translations that can translates a portion of src. Used by confusion network decoding
std::string GetScoreProducerDescription (unsigned idx=0) const
std::string GetScoreProducerWeightShortName (unsigned idx=0) const
size_t GetNumInputScores () const
virtual void InitializeForInput (InputType const &source)
 Create entry for translation of source to targetPhrase.
virtual ChartRuleLookupManagerCreateRuleLookupManager (const InputType &, const ChartCellCollection &)
 Create a sentence-specific manager for SCFG rule lookup.

Friends

class PDTAimp


Detailed Description

Definition at line 23 of file PhraseDictionaryTreeAdaptor.h.


Constructor & Destructor Documentation

Moses::PhraseDictionaryTreeAdaptor::PhraseDictionaryTreeAdaptor ( size_t  numScoreComponent,
unsigned  numInputScores,
const PhraseDictionaryFeature feature 
)

Definition at line 26 of file PhraseDictionaryTreeAdaptor.cpp.

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

Definition at line 31 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::CleanUp().

Here is the call graph for this function:


Member Function Documentation

virtual ChartRuleLookupManager* Moses::PhraseDictionaryTreeAdaptor::CreateRuleLookupManager ( const InputType ,
const ChartCellCollection  
) [inline, virtual]

Create a sentence-specific manager for SCFG rule lookup.

Implements Moses::PhraseDictionary.

Definition at line 65 of file PhraseDictionaryTreeAdaptor.h.

References CHECK.

void Moses::PhraseDictionaryTreeAdaptor::DisableCache (  ) 

Definition at line 91 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::useCache.

void Moses::PhraseDictionaryTreeAdaptor::EnableCache (  ) 

Definition at line 87 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::useCache.

size_t Moses::PhraseDictionaryTreeAdaptor::GetNumInputScores (  )  const

Definition at line 98 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::GetNumInputScores().

Referenced by GetScoreProducerDescription(), and GetScoreProducerWeightShortName().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Moses::PhraseDictionaryTreeAdaptor::GetScoreProducerDescription ( unsigned  idx = 0  )  const

Definition at line 103 of file PhraseDictionaryTreeAdaptor.cpp.

References GetNumInputScores().

Here is the call graph for this function:

std::string Moses::PhraseDictionaryTreeAdaptor::GetScoreProducerWeightShortName ( unsigned  idx = 0  )  const

Definition at line 111 of file PhraseDictionaryTreeAdaptor.cpp.

References GetNumInputScores().

Here is the call graph for this function:

TargetPhraseCollection const * Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollection ( InputType const &  src,
WordsRange const &  range 
) const [virtual]

find list of translations that can translates a portion of src. Used by confusion network decoding

Reimplemented from Moses::PhraseDictionary.

Definition at line 78 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::WordsRange::GetEndPos(), Moses::WordsRange::GetStartPos(), Moses::InputType::GetSubString(), Moses::PDTAimp::GetTargetPhraseCollection(), and Moses::PDTAimp::m_rangeCache.

Here is the call graph for this function:

TargetPhraseCollection const * Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollection ( Phrase const &  src  )  const [virtual]

find list of translations that can translates src. Only for phrase input

Implements Moses::PhraseDictionary.

Definition at line 72 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::GetTargetPhraseCollection().

Here is the call graph for this function:

void Moses::PhraseDictionaryTreeAdaptor::InitializeForInput ( InputType const &  source  )  [virtual]

Create entry for translation of source to targetPhrase.

Implements Moses::PhraseDictionary.

Definition at line 63 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::CacheSource(), and Moses::PDTAimp::CleanUp().

Here is the call graph for this function:

bool Moses::PhraseDictionaryTreeAdaptor::Load ( const std::vector< FactorType > &  input,
const std::vector< FactorType > &  output,
const std::string &  filePath,
const std::vector< float > &  weight,
size_t  tableLimit,
const LMList languageModels,
float  weightWP 
)


Friends And Related Function Documentation

friend class PDTAimp [friend]

Definition at line 27 of file PhraseDictionaryTreeAdaptor.h.


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

Generated on Thu Feb 9 00:04:11 2012 for Moses by  doxygen 1.5.9