Moses::UnknownWordPenaltyProducer Class Reference

#include <DummyScoreProducers.h>

Inheritance diagram for Moses::UnknownWordPenaltyProducer:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 UnknownWordPenaltyProducer (ScoreIndexManager &scoreIndexManager)
size_t GetNumScoreComponents () const
std::string GetScoreProducerDescription (unsigned) const
 returns a string description of this producer
std::string GetScoreProducerWeightShortName (unsigned) const
 returns the weight parameter name of this producer (used in n-best list)
size_t GetNumInputScores () const
 returns the number of scores gathered from the input (0 by default)
virtual bool ComputeValueInTranslationOption () const


Detailed Description

unknown word penalty

Definition at line 63 of file DummyScoreProducers.h.


Constructor & Destructor Documentation

Moses::UnknownWordPenaltyProducer::UnknownWordPenaltyProducer ( ScoreIndexManager scoreIndexManager  ) 

Definition at line 142 of file DummyScoreProducers.cpp.

References Moses::ScoreIndexManager::AddScoreProducer().

Here is the call graph for this function:


Member Function Documentation

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

Reimplemented from Moses::StatelessFeatureFunction.

Definition at line 167 of file DummyScoreProducers.cpp.

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

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

Reimplemented from Moses::ScoreProducer.

Definition at line 162 of file DummyScoreProducers.cpp.

size_t Moses::UnknownWordPenaltyProducer::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 147 of file DummyScoreProducers.cpp.

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

returns a string description of this producer

Implements Moses::ScoreProducer.

Definition at line 152 of file DummyScoreProducers.cpp.

std::string Moses::UnknownWordPenaltyProducer::GetScoreProducerWeightShortName ( unsigned  idx  )  const [virtual]

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

Implements Moses::ScoreProducer.

Definition at line 157 of file DummyScoreProducers.cpp.


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

Generated on Thu Feb 9 00:04:11 2012 for Moses by  doxygen 1.5.9