public class HeadWordExtractor extends Object implements FeatureExtractor1<TreebankNode>
| Constructor and Description |
|---|
HeadWordExtractor(FeatureExtractor1<TreebankNode> subExtractor) |
HeadWordExtractor(FeatureExtractor1<TreebankNode> subExtractor,
boolean includePPHead) |
| Modifier and Type | Method and Description |
|---|---|
List<Feature> |
extract(JCas jCas,
TreebankNode constituent)
Some feature extractors will require some specific number of annotations that is greater than
one.
|
public HeadWordExtractor(FeatureExtractor1<TreebankNode> subExtractor)
public HeadWordExtractor(FeatureExtractor1<TreebankNode> subExtractor, boolean includePPHead)
public List<Feature> extract(JCas jCas, TreebankNode constituent) throws CleartkExtractorException
FeatureExtractor1extract in interface FeatureExtractor1<TreebankNode>jCas - the current view of the document.constituent - the annotation for which to collect features.CleartkExtractorExceptionCopyright © 2014. All rights reserved.