Moses::PhraseDictionaryMemory Class Reference

#include <PhraseDictionaryMemory.h>

Inheritance diagram for Moses::PhraseDictionaryMemory:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionaryMemory (size_t numScoreComponent, PhraseDictionaryFeature *feature)
virtual ~PhraseDictionaryMemory ()
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)
const TargetPhraseCollectionGetTargetPhraseCollection (const Phrase &source) const
 find list of translations that can translates src. Only for phrase input
virtual void InitializeForInput (InputType const &)
 Create entry for translation of source to targetPhrase.
virtual ChartRuleLookupManagerCreateRuleLookupManager (const InputType &, const ChartCellCollection &)
 Create a sentence-specific manager for SCFG rule lookup.
 TO_STRING ()

Protected Member Functions

TargetPhraseCollectionCreateTargetPhraseCollection (const Phrase &source)

Protected Attributes

PhraseDictionaryNode m_collection

Friends

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


Detailed Description

Definition at line 35 of file PhraseDictionaryMemory.h.


Constructor & Destructor Documentation

Moses::PhraseDictionaryMemory::PhraseDictionaryMemory ( size_t  numScoreComponent,
PhraseDictionaryFeature feature 
) [inline]

Definition at line 46 of file PhraseDictionaryMemory.h.

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

Definition at line 198 of file PhraseDictionaryMemory.cpp.


Member Function Documentation

virtual ChartRuleLookupManager* Moses::PhraseDictionaryMemory::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 PhraseDictionaryMemory.h.

References CHECK.

TargetPhraseCollection * Moses::PhraseDictionaryMemory::CreateTargetPhraseCollection ( const Phrase source  )  [protected]

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

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

Implements Moses::PhraseDictionary.

Definition at line 182 of file PhraseDictionaryMemory.cpp.

References Moses::PhraseDictionaryNode::GetChild(), Moses::Phrase::GetSize(), Moses::PhraseDictionaryNode::GetTargetPhraseCollection(), Moses::Phrase::GetWord(), m_collection, and NULL.

Here is the call graph for this function:

virtual void Moses::PhraseDictionaryMemory::InitializeForInput ( InputType const &  source  )  [inline, virtual]

Create entry for translation of source to targetPhrase.

Implements Moses::PhraseDictionary.

Definition at line 61 of file PhraseDictionaryMemory.h.

bool Moses::PhraseDictionaryMemory::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 
)

Moses::PhraseDictionaryMemory::TO_STRING (  ) 


Friends And Related Function Documentation

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


Member Data Documentation


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