#include <ScoreFeature.h>

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 () |
Definition at line 82 of file ScoreFeature.h.
| virtual MosesTraining::ScoreFeature::~ScoreFeature | ( | ) | [inline, virtual] |
Definition at line 98 of file ScoreFeature.h.
| 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.
1.5.9