public class FeatureFunctionExtractor<T extends Annotation> extends Object implements FeatureExtractor1<T>
Modifier and Type | Class and Description |
---|---|
static class |
FeatureFunctionExtractor.BaseFeatures
Specify what to do with the base features created by the passed in feature extractor.
|
Constructor and Description |
---|
FeatureFunctionExtractor(FeatureExtractor1<T> extractor,
FeatureFunction... featureFunctions) |
FeatureFunctionExtractor(FeatureExtractor1<T> extractor,
FeatureFunctionExtractor.BaseFeatures baseFeatures,
FeatureFunction... featureFunctions) |
Modifier and Type | Method and Description |
---|---|
static List<Feature> |
apply(Function<Feature,List<Feature>> featureFunction,
List<Feature> features) |
List<Feature> |
extract(JCas jCas,
T focusAnnotation)
Some feature extractors will require some specific number of annotations that is greater than
one.
|
public FeatureFunctionExtractor(FeatureExtractor1<T> extractor, FeatureFunction... featureFunctions)
public FeatureFunctionExtractor(FeatureExtractor1<T> extractor, FeatureFunctionExtractor.BaseFeatures baseFeatures, FeatureFunction... featureFunctions)
baseFeatures
- determines if the base features created by the extractor parameter will be returned by
the extract method.public static List<Feature> apply(Function<Feature,List<Feature>> featureFunction, List<Feature> features)
public List<Feature> extract(JCas jCas, T focusAnnotation) throws CleartkExtractorException
FeatureExtractor1
extract
in interface FeatureExtractor1<T extends Annotation>
jCas
- the current view of the document.focusAnnotation
- the annotation for which to collect features.CleartkExtractorException
Copyright © 2014. All rights reserved.