public class DocOutcomePriorFeatureGenerator extends DocumentCustomFeatureGenerator
| Modifier and Type | Field and Description |
|---|---|
static String |
OUTCOME_PRIOR_FEATURE |
| Constructor and Description |
|---|
DocOutcomePriorFeatureGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFeatureData()
Informs the feature generator that the context of the data in the context (typically a document)
is no longer valid.
|
void |
createFeatures(List<String> features,
String[] tokens)
Extract features from given text fragments
|
void |
init(Map<String,String> arg0,
opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider arg1)
Initialized the Document Custom Feature Generator with defined properties and loaded resources.
|
public static final String OUTCOME_PRIOR_FEATURE
public void createFeatures(List<String> features, String[] tokens)
DocumentFeatureGeneratorfeatures - the list of featurestokens - the text fragments to extract features frompublic void clearFeatureData()
DocumentFeatureGeneratorpublic void init(Map<String,String> arg0, opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider arg1) throws opennlp.tools.util.InvalidFormatException
DocumentCustomFeatureGeneratorinit in class DocumentCustomFeatureGeneratorarg0 - the propertiesarg1 - the external resourcesopennlp.tools.util.InvalidFormatException - throws an exceptionCopyright © 2017 IXA pipes. All rights reserved.