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 (const std::string &line)
virtual ~PhraseDictionaryTreeAdaptor ()
void Load (AllOptions::ptr const &opts)
 override to load model files
void EnableCache ()
void DisableCache ()
TargetPhraseCollection::shared_ptr GetTargetPhraseCollectionNonCacheLEGACY (Phrase const &src) const
void InitializeForInput (ttasksptr const &ttask)
 Create entry for translation of source to targetPhrase.
void CleanUpAfterSentenceProcessing (InputType const &source)
virtual ChartRuleLookupManagerCreateRuleLookupManager (const ChartParser &, const ChartCellCollectionBase &, std::size_t)
 Create a sentence-specific manager for SCFG rule lookup.
TargetPhraseCollectionWithSourcePhrase::shared_ptr GetTargetPhraseCollectionLEGACY (InputType const &src, Range const &srcRange) const
 find list of translations that can translates a portion of src. Used by confusion network decoding

Friends

class PDTAimp


Detailed Description

Definition at line 28 of file PhraseDictionaryTreeAdaptor.h.


Constructor & Destructor Documentation

Moses::PhraseDictionaryTreeAdaptor::PhraseDictionaryTreeAdaptor ( const std::string &  line  ) 

Definition at line 30 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:

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

Definition at line 36 of file PhraseDictionaryTreeAdaptor.cpp.


Member Function Documentation

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

Reimplemented from Moses::PhraseDictionary.

Definition at line 72 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::CleanUp().

Here is the call graph for this function:

virtual ChartRuleLookupManager* Moses::PhraseDictionaryTreeAdaptor::CreateRuleLookupManager ( const ChartParser ,
const ChartCellCollectionBase ,
std::size_t   
) [inline, virtual]

Create a sentence-specific manager for SCFG rule lookup.

Implements Moses::PhraseDictionary.

Definition at line 68 of file PhraseDictionaryTreeAdaptor.h.

References UTIL_THROW.

void Moses::PhraseDictionaryTreeAdaptor::DisableCache (  ) 

Definition at line 88 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::useCache.

void Moses::PhraseDictionaryTreeAdaptor::EnableCache (  ) 

Definition at line 84 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::useCache.

TargetPhraseCollectionWithSourcePhrase::shared_ptr Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollectionLEGACY ( InputType const &  src,
Range 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 112 of file PhraseDictionaryTreeAdaptor.cpp.

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

Here is the call graph for this function:

TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollectionNonCacheLEGACY ( Phrase const &  src  )  const [virtual]

Reimplemented from Moses::PhraseDictionary.

Definition at line 79 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::PDTAimp::GetTargetPhraseCollection().

Here is the call graph for this function:

void Moses::PhraseDictionaryTreeAdaptor::InitializeForInput ( ttasksptr const &  ttask  )  [virtual]

void Moses::PhraseDictionaryTreeAdaptor::Load ( AllOptions::ptr const &  opts  )  [virtual]

override to load model files

Reimplemented from Moses::FeatureFunction.

Definition at line 40 of file PhraseDictionaryTreeAdaptor.cpp.

References Moses::FeatureFunction::m_options, and Moses::PhraseDictionary::SetFeaturesToApply().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class PDTAimp [friend]

Definition at line 38 of file PhraseDictionaryTreeAdaptor.h.

Referenced by InitializeForInput().


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

Generated on Thu Jul 6 00:33:53 2017 for Moses by  doxygen 1.5.9