public class HeadWordExtractor extends Object implements FeatureExtractor1<org.cleartk.syntax.constituent.type.TreebankNode>
Constructor and Description |
---|
HeadWordExtractor(FeatureExtractor1<org.cleartk.syntax.constituent.type.TreebankNode> subExtractor) |
HeadWordExtractor(FeatureExtractor1<org.cleartk.syntax.constituent.type.TreebankNode> subExtractor,
boolean includePPHead) |
public HeadWordExtractor(FeatureExtractor1<org.cleartk.syntax.constituent.type.TreebankNode> subExtractor)
public HeadWordExtractor(FeatureExtractor1<org.cleartk.syntax.constituent.type.TreebankNode> subExtractor, boolean includePPHead)
public List<Feature> extract(JCas jCas, org.cleartk.syntax.constituent.type.TreebankNode constituent) throws CleartkExtractorException
FeatureExtractor1
extract
in interface FeatureExtractor1<org.cleartk.syntax.constituent.type.TreebankNode>
jCas
- the current view of the document.constituent
- the annotation for which to collect features.CleartkExtractorException
Copyright © 2014. All rights reserved.