public class MinContext extends Object implements org.cleartk.ml.feature.extractor.CleartkExtractor.Context
Constructor and Description |
---|
MinContext(org.cleartk.ml.feature.extractor.CleartkExtractor.Context... contexts)
Constructs a
CleartkExtractor.Context which converts the features extracted by the argument contexts
into a bag of features where all features have the same name. |
Modifier and Type | Method and Description |
---|---|
<SEARCH_T extends org.apache.uima.jcas.tcas.Annotation> |
extract(org.apache.uima.jcas.JCas jCas,
org.apache.uima.jcas.tcas.Annotation focusAnnotation,
org.cleartk.ml.feature.extractor.CleartkExtractor.Bounds bounds,
Class<SEARCH_T> annotationClass,
org.cleartk.ml.feature.extractor.FeatureExtractor1<SEARCH_T> extractor) |
String |
getName() |
public MinContext(org.cleartk.ml.feature.extractor.CleartkExtractor.Context... contexts)
CleartkExtractor.Context
which converts the features extracted by the argument contexts
into a bag of features where all features have the same name.contexts
- The contexts which should be combined into a bag.public String getName()
getName
in interface org.cleartk.ml.feature.extractor.CleartkExtractor.Context
public <SEARCH_T extends org.apache.uima.jcas.tcas.Annotation> List<org.cleartk.ml.Feature> extract(org.apache.uima.jcas.JCas jCas, org.apache.uima.jcas.tcas.Annotation focusAnnotation, org.cleartk.ml.feature.extractor.CleartkExtractor.Bounds bounds, Class<SEARCH_T> annotationClass, org.cleartk.ml.feature.extractor.FeatureExtractor1<SEARCH_T> extractor) throws org.cleartk.ml.feature.extractor.CleartkExtractorException
extract
in interface org.cleartk.ml.feature.extractor.CleartkExtractor.Context
org.cleartk.ml.feature.extractor.CleartkExtractorException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.