public class DocumentFeatureAggregator extends Object implements DocumentFeatureGenerator
DocumentFeatureAggregator aggregates a set of
DocumentFeatureGenerators and calls them to generate the features.| Constructor and Description |
|---|
DocumentFeatureAggregator(Collection<DocumentFeatureGenerator> generators) |
DocumentFeatureAggregator(DocumentFeatureGenerator... generators)
Initializes the current instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearFeatureData()
Calls the
DocumentFeatureGenerator.clearFeatureData() method
on all aggregated DocumentFeatureGenerators. |
void |
createFeatures(List<String> features,
String[] tokens)
Calls the
DocumentFeatureGenerator.createFeatures(List, String[])
method on all aggregated DocumentFeatureGenerators. |
Collection<DocumentFeatureGenerator> |
getGenerators()
Retrieves a
Collections of all aggregated
DocumentFeatureGenerators. |
public DocumentFeatureAggregator(DocumentFeatureGenerator... generators)
generators - array of generators, null values are not permittedpublic DocumentFeatureAggregator(Collection<DocumentFeatureGenerator> generators)
public void clearFeatureData()
DocumentFeatureGenerator.clearFeatureData() method
on all aggregated DocumentFeatureGenerators.clearFeatureData in interface DocumentFeatureGeneratorpublic void createFeatures(List<String> features, String[] tokens)
DocumentFeatureGenerator.createFeatures(List, String[])
method on all aggregated DocumentFeatureGenerators.createFeatures in interface DocumentFeatureGeneratorfeatures - the list of featurestokens - the text fragments to extract features frompublic Collection<DocumentFeatureGenerator> getGenerators()
Collections of all aggregated
DocumentFeatureGenerators.Copyright © 2017 IXA pipes. All rights reserved.