MosesTraining::ScoreFeature Class Reference

#include <ScoreFeature.h>

Inheritance diagram for MosesTraining::ScoreFeature:

Inheritance graph

List of all members.

Public Member Functions

virtual void addPropertiesToPhrasePair (ExtractionPhrasePair &phrasePair, float count, int sentenceId) const
virtual void add (const ScoreFeatureContext &context, std::vector< float > &denseValues, std::map< std::string, float > &sparseValues) const =0
virtual ~ScoreFeature ()

Detailed Description

Abstract base class for extra features that can be added to the phrase table during scoring.

Definition at line 82 of file ScoreFeature.h.

Constructor & Destructor Documentation

virtual MosesTraining::ScoreFeature::~ScoreFeature (  )  [inline, virtual]

Definition at line 98 of file ScoreFeature.h.

Member Function Documentation

virtual void MosesTraining::ScoreFeature::add ( const ScoreFeatureContext context,
std::vector< float > &  denseValues,
std::map< std::string, float > &  sparseValues 
) const [pure virtual]

Add the values for this score feature.

Implemented in MosesTraining::DomainFeature, and MosesTraining::InternalStructFeature.

virtual void MosesTraining::ScoreFeature::addPropertiesToPhrasePair ( ExtractionPhrasePair phrasePair,
float  count,
int  sentenceId 
) const [inline, virtual]

Some features might need to store properties in ExtractionPhrasePair, e.g. to pass along external information loaded by a feature which may distinguish several phrase occurrences based on sentence ID

Reimplemented in MosesTraining::DomainFeature.

Definition at line 89 of file ScoreFeature.h.

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

Generated on Thu Jul 6 00:34:08 2017 for Moses by  doxygen 1.5.9