E- Type of objects whose features are extracted
public class PrefixedFeatureExtractor<E> extends Object implements FeatureExtractor<E>, Serializable
PrefixedFeatureExtractorapplies 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|
Construct a feature extractor that adds the specified prefix to feature names extracted by the specified extractor.
|Modifier and Type||Method and Description|
Return the feature map derived by prefixing the specified prefix to the feature names extracted by the base feature extractor.
public PrefixedFeatureExtractor(String prefix, FeatureExtractor<E> extractor)
prefix- Prefix for feature names.
extractor- Base feature extractor.