public class WhiteSpaceExtractor<T extends Annotation> extends Object implements NamedFeatureExtractor1<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
ORIENTATION_LEFT |
static String |
ORIENTATION_RIGHT |
static Pattern |
WhiteSpacePattern |
static String |
WhiteSpaceRegex |
| Constructor and Description |
|---|
WhiteSpaceExtractor() |
| Modifier and Type | Method and Description |
|---|---|
List<Feature> |
extract(JCas view,
Annotation focusAnnotation)
Some feature extractors will require some specific number of annotations that is greater than
one.
|
String |
getFeatureName()
Gets the name that will be used for all features created by this feature extractor.
|
public static final String ORIENTATION_LEFT
public static final String ORIENTATION_RIGHT
public static final Pattern WhiteSpacePattern
public static final String WhiteSpaceRegex
public WhiteSpaceExtractor()
public List<Feature> extract(JCas view, Annotation focusAnnotation) throws CleartkExtractorException
FeatureExtractor1extract in interface FeatureExtractor1<T extends Annotation>view - the current view of the document.focusAnnotation - the annotation for which to collect features.CleartkExtractorExceptionpublic String getFeatureName()
NamedFeatureExtractor1getFeatureName in interface NamedFeatureExtractor1<T extends Annotation>Copyright © 2014. All rights reserved.