Moses::PhraseDictionaryMemoryPerSentenceOnDemand Class Reference

#include <PhraseDictionaryMemoryPerSentenceOnDemand.h>

Inheritance diagram for Moses::PhraseDictionaryMemoryPerSentenceOnDemand:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionaryMemoryPerSentenceOnDemand (const std::string &line)
void Load (AllOptions::ptr const &opts)
 override to load model files
void InitializeForInput (ttasksptr const &ttask)
 Create entry for translation of source to targetPhrase.
void GetTargetPhraseCollectionBatch (const InputPathList &inputPathQueue) const
ChartRuleLookupManagerCreateRuleLookupManager (const ChartParser &, const ChartCellCollectionBase &, std::size_t)
 Create a sentence-specific manager for SCFG rule lookup.
void SetParameter (const std::string &key, const std::string &value)
TargetPhraseCollection::shared_ptr GetTargetPhraseCollectionNonCacheLEGACY (const Phrase &source) const
 TO_STRING ()

Protected Types

typedef boost::unordered_map
< Phrase,
TargetPhraseCollection::shared_ptr
Coll

Protected Member Functions

CollGetColl () const

Protected Attributes

boost::thread_specific_ptr< Collm_coll
bool m_valuesAreProbabilities

Friends

std::ostream & operator<< (std::ostream &, const PhraseDictionaryMemoryPerSentenceOnDemand &)


Detailed Description

Definition at line 14 of file PhraseDictionaryMemoryPerSentenceOnDemand.h.


Member Typedef Documentation

Definition at line 39 of file PhraseDictionaryMemoryPerSentenceOnDemand.h.


Constructor & Destructor Documentation

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

Definition at line 9 of file PhraseDictionaryMemoryPerSentenceOnDemand.cpp.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:


Member Function Documentation

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

Create a sentence-specific manager for SCFG rule lookup.

Implements Moses::PhraseDictionary.

Definition at line 109 of file PhraseDictionaryMemoryPerSentenceOnDemand.cpp.

PhraseDictionaryMemoryPerSentenceOnDemand::Coll & Moses::PhraseDictionaryMemoryPerSentenceOnDemand::GetColl (  )  const [protected]

Definition at line 116 of file PhraseDictionaryMemoryPerSentenceOnDemand.cpp.

References m_coll, and NULL.

Referenced by GetTargetPhraseCollectionBatch(), GetTargetPhraseCollectionNonCacheLEGACY(), and InitializeForInput().

Here is the caller graph for this function:

void Moses::PhraseDictionaryMemoryPerSentenceOnDemand::GetTargetPhraseCollectionBatch ( const InputPathList inputPathQueue  )  const [virtual]

Reimplemented from Moses::PhraseDictionary.

Definition at line 89 of file PhraseDictionaryMemoryPerSentenceOnDemand.cpp.

References GetColl(), Moses::InputPath::GetPhrase(), NULL, and Moses::InputPath::SetTargetPhrases().

Here is the call graph for this function:

TargetPhraseCollection::shared_ptr Moses::PhraseDictionaryMemoryPerSentenceOnDemand::GetTargetPhraseCollectionNonCacheLEGACY ( const Phrase source  )  const [virtual]

Reimplemented from Moses::PhraseDictionary.

Definition at line 24 of file PhraseDictionaryMemoryPerSentenceOnDemand.cpp.

References GetColl().

Here is the call graph for this function:

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

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

override to load model files

Reimplemented from Moses::FeatureFunction.

Definition at line 15 of file PhraseDictionaryMemoryPerSentenceOnDemand.cpp.

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

Here is the call graph for this function:

void Moses::PhraseDictionaryMemoryPerSentenceOnDemand::SetParameter ( const std::string &  key,
const std::string &  value 
) [virtual]

Reimplemented from Moses::PhraseDictionary.

Definition at line 129 of file PhraseDictionaryMemoryPerSentenceOnDemand.cpp.

References m_valuesAreProbabilities, Moses::Scan< bool >(), and UTIL_THROW.

Here is the call graph for this function:

Moses::PhraseDictionaryMemoryPerSentenceOnDemand::TO_STRING (  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const PhraseDictionaryMemoryPerSentenceOnDemand  
) [friend]


Member Data Documentation

boost::thread_specific_ptr<Coll> Moses::PhraseDictionaryMemoryPerSentenceOnDemand::m_coll [mutable, protected]

Definition at line 40 of file PhraseDictionaryMemoryPerSentenceOnDemand.h.

Referenced by GetColl().

Definition at line 42 of file PhraseDictionaryMemoryPerSentenceOnDemand.h.

Referenced by InitializeForInput(), and SetParameter().


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

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