Moses::PhraseDictionaryMemoryPerSentence Class Reference

#include <PhraseDictionaryMemoryPerSentence.h>

Inheritance diagram for Moses::PhraseDictionaryMemoryPerSentence:

Inheritance graph
Collaboration diagram for Moses::PhraseDictionaryMemoryPerSentence:

Collaboration graph

List of all members.

Public Member Functions

 PhraseDictionaryMemoryPerSentence (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.

Protected Types

typedef boost::unordered_map
< Phrase,

Protected Member Functions

CollGetColl () const

Protected Attributes

boost::thread_specific_ptr< Collm_coll


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

Detailed Description

Definition at line 14 of file PhraseDictionaryMemoryPerSentence.h.

Member Typedef Documentation

Definition at line 35 of file PhraseDictionaryMemoryPerSentence.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file PhraseDictionaryMemoryPerSentence.cpp.

References Moses::FeatureFunction::ReadParameters().

Here is the call graph for this function:

Member Function Documentation

ChartRuleLookupManager * Moses::PhraseDictionaryMemoryPerSentence::CreateRuleLookupManager ( const ChartParser ,
const ChartCellCollectionBase ,
) [virtual]

Create a sentence-specific manager for SCFG rule lookup.

Implements Moses::PhraseDictionary.

Definition at line 80 of file PhraseDictionaryMemoryPerSentence.cpp.

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

Definition at line 87 of file PhraseDictionaryMemoryPerSentence.cpp.

References m_coll, and NULL.

Referenced by GetTargetPhraseCollectionBatch(), and InitializeForInput().

Here is the caller graph for this function:

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

Reimplemented from Moses::PhraseDictionary.

Definition at line 60 of file PhraseDictionaryMemoryPerSentence.cpp.

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

Here is the call graph for this function:

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

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

override to load model files

Reimplemented from Moses::FeatureFunction.

Definition at line 15 of file PhraseDictionaryMemoryPerSentence.cpp.

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

Here is the call graph for this function:

Moses::PhraseDictionaryMemoryPerSentence::TO_STRING (  ) 

Friends And Related Function Documentation

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

Member Data Documentation

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

Definition at line 36 of file PhraseDictionaryMemoryPerSentence.h.

Referenced by GetColl().

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