Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
This class defines a dot product kernel function for two vectors. More...
#include <dot-product.H>
Public Member Functions | |
virtual double | Apply (const FeatureVector< int, double > &fv1, int index1, const FeatureVector< int, double > &fv2, int index2) const |
Applies this kernel function to the specified feature vectors. More... | |
Public Member Functions inherited from reranker::KernelFunction | |
virtual | ~KernelFunction () |
virtual double | Apply (const FeatureVector< int, double > &fv1, const FeatureVector< int, double > &fv2) |
Applies this kernel function to the specified feature vectors. More... | |
This class defines a dot product kernel function for two vectors.
Definition at line 47 of file dot-product.H.
|
inlinevirtual |
Applies this kernel function to the specified feature vectors.
fv1 | the first feature vector |
index1 | the training example index of the first feature vector, if known, or else -1; concrete implementations may ignore this argument |
fv2 | the second feature vector |
index2 | the training example index of the second feature vector, if known, or else -1; concrete implementations may ignore this argument |
Implements reranker::KernelFunction.
Definition at line 49 of file dot-product.H.