#include <InternalStructFeature.h>


Public Member Functions | |
| InternalStructFeature () | |
| void | add (const ScoreFeatureContext &context, std::vector< float > &denseValues, std::map< std::string, float > &sparseValues) const |
Protected Member Functions | |
| virtual void | add (const std::string *treeFragment, float count, std::vector< float > &denseValues, std::map< std::string, float > &sparseValues) const =0 |
Protected Attributes | |
| int | m_type |
Definition at line 17 of file InternalStructFeature.h.
| MosesTraining::InternalStructFeature::InternalStructFeature | ( | ) | [inline] |
Definition at line 20 of file InternalStructFeature.h.
| virtual void MosesTraining::InternalStructFeature::add | ( | const std::string * | treeFragment, | |
| float | count, | |||
| std::vector< float > & | denseValues, | |||
| std::map< std::string, float > & | sparseValues | |||
| ) | const [protected, pure virtual] |
Overridden in subclass
Implemented in MosesTraining::InternalStructFeatureDense, and MosesTraining::InternalStructFeatureSparse.
| void MosesTraining::InternalStructFeature::add | ( | const ScoreFeatureContext & | context, | |
| std::vector< float > & | denseValues, | |||
| std::map< std::string, float > & | sparseValues | |||
| ) | const [virtual] |
Add the values for this feature function.
Implements MosesTraining::ScoreFeature.
Definition at line 9 of file InternalStructFeature.cpp.
References MosesTraining::ExtractionPhrasePair::GetProperty(), and MosesTraining::ScoreFeatureContext::phrasePair.

int MosesTraining::InternalStructFeature::m_type [protected] |
Definition at line 33 of file InternalStructFeature.h.
Referenced by MosesTraining::InternalStructFeatureDense::InternalStructFeatureDense(), and MosesTraining::InternalStructFeatureSparse::InternalStructFeatureSparse().
1.5.9