E- The type of objects whose features are extracted.
public class KnownFeatureExtractor<E> extends ModifiedFeatureExtractor<E> implements Serializable
KnownFeatureExtractorrestricts a base feature extractor to features contained in a set provided at construction time.
|Constructor and Description|
Construct a known feature extractor based on the specified feature set and base extractor.
|Modifier and Type||Method and Description|
Returns the value if the feature is in the known feature set and
Returns and unmodifiable view of the known feature set for this known feature extractor.
public KnownFeatureExtractor(FeatureExtractor<? super E> baseExtractor, Set<String> knownFeatureSet)
knownFeatureSet- Set of known features.
baseExtractor- Base feature extractor.