public class TokenTextForSelectedPosExtractor extends Object implements NamedFeatureExtractor1<Token>
| Constructor and Description |
|---|
TokenTextForSelectedPosExtractor(Collection<String> acceptablePOSTags) |
TokenTextForSelectedPosExtractor(String... acceptablePOSTags) |
| Modifier and Type | Method and Description |
|---|---|
List<Feature> |
extract(JCas view,
Token token)
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 TokenTextForSelectedPosExtractor(Collection<String> acceptablePOSTags)
public TokenTextForSelectedPosExtractor(String... acceptablePOSTags)
public List<Feature> extract(JCas view, Token token) throws CleartkExtractorException
FeatureExtractor1extract in interface FeatureExtractor1<Token>view - the current view of the document.token - the annotation for which to collect features.CleartkExtractorExceptionpublic String getFeatureName()
NamedFeatureExtractor1getFeatureName in interface NamedFeatureExtractor1<Token>Copyright © 2014. All rights reserved.