T
- Type of object that features can be extracted frompublic static class HomogeneousKernelMap.ExtractorWrapper<T> extends Object implements FeatureExtractor<DoubleFV,T>
FeatureExtractor
that wraps another
FeatureExtractor
and then applies the HomogeneousKernelMap
to
the output before returning the vector.Constructor and Description |
---|
ExtractorWrapper(FeatureExtractor<? extends FeatureVector,T> inner,
HomogeneousKernelMap map)
Construct with the given internal extractor and homogeneous kernel map.
|
Modifier and Type | Method and Description |
---|---|
DoubleFV |
extractFeature(T object)
Extract features from an object and return them.
|
public ExtractorWrapper(FeatureExtractor<? extends FeatureVector,T> inner, HomogeneousKernelMap map)
inner
- the internal extractormap
- the homogeneous kernel mappublic DoubleFV extractFeature(T object)
FeatureExtractor
extractFeature
in interface FeatureExtractor<DoubleFV,T>
object
- the object to extract from