|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.features.FeatureExtractorFilter<E>
com.aliasi.features.ModifiedFeatureExtractor<E>
E - The type of objects whose features are extracted.public abstract class ModifiedFeatureExtractor<E>
A ModifiedFeatureExtractor allows feature values to be
modified in a feature-specific fashion.
| Constructor Summary | |
|---|---|
ModifiedFeatureExtractor(FeatureExtractor<? super E> extractor)
Construct a modified feature extractor with the specified base extractor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.aliasi.features.FeatureExtractorFilter |
|---|
baseExtractor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModifiedFeatureExtractor(FeatureExtractor<? super E> extractor)
extractor - Base feature extractor.| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||