E - The type of objects whose features are extracted.public abstract class ModifiedFeatureExtractor<E> extends FeatureExtractorFilter<E> implements FeatureExtractor<E>
ModifiedFeatureExtractor allows feature values to be
modified in a feature-specific fashion.| Constructor and Description |
|---|
ModifiedFeatureExtractor(FeatureExtractor<? super E> extractor)
Construct a modified feature extractor with the specified
base extractor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,? extends Number> |
features(E in)
Return the modified form of the feature vector produced by
the base feature extractor.
|
Number |
filter(String feature,
Number value)
Return the value for the specified original feature and value,
or
null to remove the feature altogether. |
baseExtractorpublic ModifiedFeatureExtractor(FeatureExtractor<? super E> extractor)
extractor - Base feature extractor.public Map<String,? extends Number> features(E in)
filter(String,Number) to
produce a new value, which if non-null, is added to the
result.features in interface FeatureExtractor<E>features in class FeatureExtractorFilter<E>in - Input to be converted to a feature vector.public Number filter(String feature, Number value)
null to remove the feature altogether.
This implementation passes through the value.
feature - Feature corresponding to the value.value - Value to filter.null.Copyright © 2016 Alias-i, Inc.. All rights reserved.