Moses::ScoreProducer Class Reference

#include <ScoreProducer.h>

Inheritance diagram for Moses::ScoreProducer:

Inheritance graph
[legend]

List of all members.

Public Member Functions

unsigned int GetScoreBookkeepingID () const
 contiguous id
void CreateScoreBookkeepingID ()
virtual size_t GetNumScoreComponents () const =0
virtual std::string GetScoreProducerDescription (unsigned idx=0) const =0
 returns a string description of this producer
virtual std::string GetScoreProducerWeightShortName (unsigned idx=0) const =0
 returns the weight parameter name of this producer (used in n-best list)
virtual size_t GetNumInputScores () const
 returns the number of scores gathered from the input (0 by default)
virtual bool IsStateless () const =0

Protected Member Functions

 ScoreProducer ()
virtual ~ScoreProducer ()


Detailed Description

to keep track of the various things that can produce a score, we use this evil implementation-inheritance to give them each a unique, sequential (read: good for vector indices) ID

Note:
do not confuse this with a producer/consumer pattern. this is not a producer in that sense.

Definition at line 24 of file ScoreProducer.h.


Constructor & Destructor Documentation

Moses::ScoreProducer::ScoreProducer (  )  [protected]

Definition at line 15 of file ScoreProducer.cpp.

References UNASSIGNED.

Moses::ScoreProducer::~ScoreProducer (  )  [protected, virtual]

Definition at line 13 of file ScoreProducer.cpp.


Member Function Documentation

void Moses::ScoreProducer::CreateScoreBookkeepingID (  )  [inline]

Definition at line 45 of file ScoreProducer.h.

virtual size_t Moses::ScoreProducer::GetNumInputScores (  )  const [inline, virtual]

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

Reimplemented in Moses::DistortionScoreProducer, Moses::WordPenaltyProducer, Moses::UnknownWordPenaltyProducer, and Moses::PhraseDictionaryFeature.

Definition at line 59 of file ScoreProducer.h.

virtual size_t Moses::ScoreProducer::GetNumScoreComponents (  )  const [pure virtual]

unsigned int Moses::ScoreProducer::GetScoreBookkeepingID (  )  const [inline]

virtual std::string Moses::ScoreProducer::GetScoreProducerDescription ( unsigned  idx = 0  )  const [pure virtual]

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

virtual bool Moses::ScoreProducer::IsStateless (  )  const [pure virtual]


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

Generated on Wed Feb 8 22:04:09 2012 for Moses by  doxygen 1.5.9