public static class CleartkExtractor.Covered extends Object implements CleartkExtractor.Context
CleartkExtractor.Context
for extracting all annotations within the focus annotation.Constructor and Description |
---|
CleartkExtractor.Covered()
Constructs a context that will extract features over all annotations within the focus
annotation.
|
Modifier and Type | Method and Description |
---|---|
<SEARCH_T extends Annotation> |
extract(JCas jCas,
Annotation focusAnnotation,
CleartkExtractor.Bounds bounds,
Class<SEARCH_T> annotationClass,
FeatureExtractor1<SEARCH_T> extractor)
Extracts features in the given context.
|
String |
getName()
Gets the base feature name that will be used in
Feature s generated by this context. |
public CleartkExtractor.Covered()
public <SEARCH_T extends Annotation> List<Feature> extract(JCas jCas, Annotation focusAnnotation, CleartkExtractor.Bounds bounds, Class<SEARCH_T> annotationClass, FeatureExtractor1<SEARCH_T> extractor) throws CleartkExtractorException
CleartkExtractor.Context
extract
in interface CleartkExtractor.Context
jCas
- The JCas
containing the focus annotation.focusAnnotation
- The annotation whose context is to be searched.annotationClass
- The type of annotation to be found in the context.extractor
- The feature extractor that should be applied to each annotation found in the
context.CleartkExtractorException
public String getName()
CleartkExtractor.Context
Feature
s generated by this context.
The actual feature names may include additional information (e.g. relative position), but
this base name should be used in all aggregating contexts like CleartkExtractor.Bag
or CleartkExtractor.Ngram
.getName
in interface CleartkExtractor.Context
Copyright © 2014. All rights reserved.