Moses::PhraseDictionaryOnDisk Class Reference

#include <PhraseDictionaryOnDisk.h>

Inheritance diagram for Moses::PhraseDictionaryOnDisk:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionaryOnDisk (size_t numScoreComponent, PhraseDictionaryFeature *feature)
virtual ~PhraseDictionaryOnDisk ()
PhraseTableImplementation GetPhraseTableImplementation () const
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, const WordPenaltyProducer *wpProducer)
std::string GetScoreProducerDescription (unsigned) const
virtual const
TargetPhraseCollection
GetTargetPhraseCollection (const Phrase &src) const
 find list of translations that can translates src. Only for phrase input
void InitializeForInput (const InputType &input)
 Create entry for translation of source to targetPhrase.
void CleanUp ()
virtual ChartRuleLookupManagerCreateRuleLookupManager (const InputType &, const ChartCellCollection &)
 Create a sentence-specific manager for SCFG rule lookup.

Protected Member Functions

void LoadTargetLookup ()

Protected Attributes

OnDiskPt::OnDiskWrapper m_dbWrapper
const LMListm_languageModels
const WordPenaltyProducerm_wpProducer
std::vector< FactorTypem_inputFactorsVec
std::vector< FactorTypem_outputFactorsVec
std::vector< float > m_weight
std::string m_filePath

Friends

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


Detailed Description

Definition at line 38 of file PhraseDictionaryOnDisk.h.


Constructor & Destructor Documentation

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

Definition at line 54 of file PhraseDictionaryOnDisk.h.

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

Definition at line 33 of file PhraseDictionaryOnDisk.cpp.

References CleanUp().

Here is the call graph for this function:


Member Function Documentation

void Moses::PhraseDictionaryOnDisk::CleanUp (  )  [virtual]

Reimplemented from Moses::Dictionary.

Definition at line 80 of file PhraseDictionaryOnDisk.cpp.

Referenced by ~PhraseDictionaryOnDisk().

Here is the caller graph for this function:

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

Create a sentence-specific manager for SCFG rule lookup.

Implements Moses::PhraseDictionary.

Definition at line 90 of file PhraseDictionaryOnDisk.cpp.

References m_dbWrapper, m_filePath, m_inputFactorsVec, m_languageModels, m_outputFactorsVec, m_weight, and m_wpProducer.

PhraseTableImplementation Moses::PhraseDictionaryOnDisk::GetPhraseTableImplementation (  )  const [inline]

Definition at line 59 of file PhraseDictionaryOnDisk.h.

References Moses::OnDisk.

std::string Moses::PhraseDictionaryOnDisk::GetScoreProducerDescription ( unsigned   )  const [inline]

Definition at line 71 of file PhraseDictionaryOnDisk.h.

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

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

Implements Moses::PhraseDictionary.

Definition at line 69 of file PhraseDictionaryOnDisk.cpp.

References CHECK, and NULL.

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

Create entry for translation of source to targetPhrase.

Implements Moses::PhraseDictionary.

Definition at line 75 of file PhraseDictionaryOnDisk.cpp.

bool Moses::PhraseDictionaryOnDisk::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,
const WordPenaltyProducer wpProducer 
)

void Moses::PhraseDictionaryOnDisk::LoadTargetLookup (  )  [protected]

Definition at line 85 of file PhraseDictionaryOnDisk.cpp.

Referenced by Load().

Here is the caller graph for this function:


Friends And Related Function Documentation

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


Member Data Documentation

OnDiskPt::OnDiskWrapper Moses::PhraseDictionaryOnDisk::m_dbWrapper [protected]

Definition at line 44 of file PhraseDictionaryOnDisk.h.

Referenced by CreateRuleLookupManager(), and Load().

Definition at line 49 of file PhraseDictionaryOnDisk.h.

Referenced by CreateRuleLookupManager(), and Load().

Definition at line 47 of file PhraseDictionaryOnDisk.h.

Referenced by CreateRuleLookupManager(), and Load().

Definition at line 45 of file PhraseDictionaryOnDisk.h.

Referenced by CreateRuleLookupManager(), and Load().

Definition at line 47 of file PhraseDictionaryOnDisk.h.

Referenced by CreateRuleLookupManager(), and Load().

std::vector<float> Moses::PhraseDictionaryOnDisk::m_weight [protected]

Definition at line 48 of file PhraseDictionaryOnDisk.h.

Referenced by CreateRuleLookupManager(), and Load().

Definition at line 46 of file PhraseDictionaryOnDisk.h.

Referenced by CreateRuleLookupManager(), and Load().


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

Generated on Wed Feb 8 23:04:11 2012 for Moses by  doxygen 1.5.9