Moses::PhraseDictionaryFeature Class Reference

#include <PhraseDictionary.h>

Inheritance diagram for Moses::PhraseDictionaryFeature:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionaryFeature (PhraseTableImplementation implementation, size_t numScoreComponent, unsigned numInputScores, const std::vector< FactorType > &input, const std::vector< FactorType > &output, const std::string &filePath, const std::vector< float > &weight, size_t tableLimit, const std::string &targetFile, const std::string &alignmentsFile)
virtual ~PhraseDictionaryFeature ()
virtual bool ComputeValueInTranslationOption () const
std::string GetScoreProducerDescription (unsigned) const
 returns a string description of this producer
std::string GetScoreProducerWeightShortName (unsigned idx=0) const
 returns the weight parameter name of this producer (used in n-best list)
size_t GetNumScoreComponents () const
size_t GetNumInputScores () const
 returns the number of scores gathered from the input (0 by default)
void InitDictionary (const TranslationSystem *system)
void InitDictionary (const TranslationSystem *system, const InputType &source)
const PhraseDictionaryGetDictionary () const


Detailed Description

Represents a feature derived from a phrase table.

Definition at line 93 of file PhraseDictionary.h.


Constructor & Destructor Documentation

Moses::PhraseDictionaryFeature::PhraseDictionaryFeature ( PhraseTableImplementation  implementation,
size_t  numScoreComponent,
unsigned  numInputScores,
const std::vector< FactorType > &  input,
const std::vector< FactorType > &  output,
const std::string &  filePath,
const std::vector< float > &  weight,
size_t  tableLimit,
const std::string &  targetFile,
const std::string &  alignmentsFile 
)

Definition at line 49 of file PhraseDictionary.cpp.

References Moses::StaticData::GetScoreIndexManager(), Moses::StaticData::Instance(), Moses::Memory, Moses::SCFG, and Moses::SuffixArray.

Here is the call graph for this function:

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

Definition at line 242 of file PhraseDictionary.cpp.


Member Function Documentation

bool Moses::PhraseDictionaryFeature::ComputeValueInTranslationOption (  )  const [virtual]

Reimplemented from Moses::StatelessFeatureFunction.

Definition at line 274 of file PhraseDictionary.cpp.

const PhraseDictionary * Moses::PhraseDictionaryFeature::GetDictionary (  )  const

size_t Moses::PhraseDictionaryFeature::GetNumInputScores (  )  const [virtual]

returns the number of scores gathered from the input (0 by default)

Reimplemented from Moses::ScoreProducer.

Definition at line 269 of file PhraseDictionary.cpp.

Referenced by GetScoreProducerDescription(), and GetScoreProducerWeightShortName().

Here is the caller graph for this function:

size_t Moses::PhraseDictionaryFeature::GetNumScoreComponents (  )  const [virtual]

returns the number of scores that a subclass produces. For example, a language model conventionally produces 1, a translation table some arbitrary number, etc

Implements Moses::ScoreProducer.

Definition at line 264 of file PhraseDictionary.cpp.

Referenced by Moses::RuleTableLoaderStandard::Load().

Here is the caller graph for this function:

std::string Moses::PhraseDictionaryFeature::GetScoreProducerDescription ( unsigned  idx  )  const [virtual]

returns a string description of this producer

Implements Moses::ScoreProducer.

Definition at line 246 of file PhraseDictionary.cpp.

References GetNumInputScores().

Here is the call graph for this function:

std::string Moses::PhraseDictionaryFeature::GetScoreProducerWeightShortName ( unsigned  idx = 0  )  const [virtual]

returns the weight parameter name of this producer (used in n-best list)

Implements Moses::ScoreProducer.

Definition at line 255 of file PhraseDictionary.cpp.

References GetNumInputScores().

Here is the call graph for this function:

void Moses::PhraseDictionaryFeature::InitDictionary ( const TranslationSystem system,
const InputType source 
)

Definition at line 211 of file PhraseDictionary.cpp.

References CHECK, and Moses::PhraseDictionary::InitializeForInput().

Here is the call graph for this function:

void Moses::PhraseDictionaryFeature::InitDictionary ( const TranslationSystem system  ) 

Definition at line 197 of file PhraseDictionary.cpp.

References IFVERBOSE, and Moses::PrintUserTime().

Here is the call graph for this function:


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