E - Type of objects whose features are extractedpublic class PrefixedFeatureExtractor<E> extends Object implements FeatureExtractor<E>, Serializable
PrefixedFeatureExtractor applies a specified prefix to all
of the feature names from a base feature extractor. This class is
convenient when combining feature extractors in situations where
there might be name-space conflicts.
| Constructor and Description |
|---|
PrefixedFeatureExtractor(String prefix,
FeatureExtractor<E> extractor)
Construct a feature extractor that adds the specified prefix
to feature names extracted by the specified extractor.
|
public PrefixedFeatureExtractor(String prefix, FeatureExtractor<E> extractor)
prefix - Prefix for feature names.extractor - Base feature extractor.public Map<String,? extends Number> features(E in)
features in interface FeatureExtractor<E>in - Object whose features are extracted.Copyright © 2016 Alias-i, Inc.. All rights reserved.