|
Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
This class illustrates how to write a FeatureExtractor implementation. More...
#include <example-feature-extractor.H>
Public Member Functions | |
| ExampleFeatureExtractor () | |
Constructs an instance, emitting that fact to cout. More... | |
| virtual | ~ExampleFeatureExtractor () |
| Destroys this instance. More... | |
| virtual void | RegisterInitializers (Initializers &initializers) |
| virtual void | Init (const Environment *env, const string &arg) |
| Initializes this instance with the specified argument string. More... | |
| virtual void | Extract (Candidate &candidate, FeatureVector< int, double > &features) |
| Extracts “compiled” features. More... | |
| virtual void | ExtractSymbolic (Candidate &candidate, FeatureVector< string, double > &symbolic_features) |
| Extracts symbolic (or string) features. More... | |
Public Member Functions inherited from reranker::FeatureExtractor | |
| FeatureExtractor () | |
| Constructs an empty feature vector. More... | |
| virtual | ~FeatureExtractor () |
| Destroys this vector. More... | |
| virtual void | Reset () |
| Indicates to this instance that iteration over candidate sets on which features are being extracted has been reset. More... | |
| virtual void | Extract (CandidateSet &candidate_set) |
| Extracts features for all the candidates in the specified CandidateSet. More... | |
Public Member Functions inherited from reranker::FactoryConstructible | |
| virtual | ~FactoryConstructible () |
This class illustrates how to write a FeatureExtractor implementation.
Definition at line 59 of file example-feature-extractor.H.
|
inline |
Constructs an instance, emitting that fact to cout.
Definition at line 62 of file example-feature-extractor.H.
|
inlinevirtual |
Destroys this instance.
Definition at line 66 of file example-feature-extractor.H.
|
inlinevirtual |
Extracts “compiled” features.
| [in] | candidate | the candidate for which to extract features |
| [out] | features | the features extracted for the specified candidate |
Implements reranker::FeatureExtractor.
Definition at line 109 of file example-feature-extractor.H.
|
inlinevirtual |
Extracts symbolic (or string) features.
| [in] | candidate | the candidate for which to extract features |
| [out] | symbolic_features | the features extracted for the specified candidate |
Implements reranker::FeatureExtractor.
Definition at line 120 of file example-feature-extractor.H.
|
inlinevirtual |
Initializes this instance with the specified argument string.
This method is guaranteed to be invoked by a Factory just after construction.
| env | the environment used by the Factory when this object was constructed |
| arg | the argument string with which to initialize this instance |
Reimplemented from reranker::FactoryConstructible.
Definition at line 83 of file example-feature-extractor.H.
|
inlinevirtual |
Reimplemented from reranker::FactoryConstructible.
Definition at line 68 of file example-feature-extractor.H.
1.8.6