Package opennlp.tools.util.featuregen
Class AggregatedFeatureGenerator
java.lang.Object
opennlp.tools.util.featuregen.AggregatedFeatureGenerator
- All Implemented Interfaces:
- AdaptiveFeatureGenerator
The 
AggregatedFeatureGenerator aggregates a set of
 feature generators and calls them
 to generate the features.- 
Constructor SummaryConstructorsConstructorDescriptionAggregatedFeatureGenerator(Collection<AdaptiveFeatureGenerator> generators) Initializes anAggregatedFeatureGeneratorvia specifiedgenerators.AggregatedFeatureGenerator(AdaptiveFeatureGenerator... generators) Initializes anAggregatedFeatureGeneratorvia specifiedgenerators.
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalls theAdaptiveFeatureGenerator.clearAdaptiveData()method on all aggregatedfeature generators.voidcreateFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) Calls theAdaptiveFeatureGenerator.createFeatures(List, String[], int, String[])method on all aggregatedfeature generators.Retrieves aCollectionsof all aggregatedfeature generators.voidupdateAdaptiveData(String[] tokens, String[] outcomes) Calls theAdaptiveFeatureGenerator.updateAdaptiveData(String[], String[])method on all aggregatedfeature generators.
- 
Constructor Details- 
AggregatedFeatureGeneratorInitializes anAggregatedFeatureGeneratorvia specifiedgenerators.- Parameters:
- generators- A collection of generators,- nullvalues are not permitted.
 
- 
AggregatedFeatureGeneratorInitializes anAggregatedFeatureGeneratorvia specifiedgenerators.- Parameters:
- generators- A collection of generators,- nullvalues are not permitted.
 
 
- 
- 
Method Details- 
clearAdaptiveDatapublic void clearAdaptiveData()Calls theAdaptiveFeatureGenerator.clearAdaptiveData()method on all aggregatedfeature generators.- Specified by:
- clearAdaptiveDatain interface- AdaptiveFeatureGenerator
 
- 
createFeaturespublic void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) Calls theAdaptiveFeatureGenerator.createFeatures(List, String[], int, String[])method on all aggregatedfeature generators.- Specified by:
- createFeaturesin interface- AdaptiveFeatureGenerator
- Parameters:
- features- The list of features to be added to.
- tokens- The tokens of the sentence or other text unit being processed.
- index- The index of the token which is currently being processed.
- previousOutcomes- The outcomes for the tokens prior to the specified index.
 
- 
updateAdaptiveDataCalls theAdaptiveFeatureGenerator.updateAdaptiveData(String[], String[])method on all aggregatedfeature generators.- Specified by:
- updateAdaptiveDatain interface- AdaptiveFeatureGenerator
- Parameters:
- tokens- The tokens of the sentence or other text unit which has been processed.
- outcomes- The outcomes associated with the specified tokens.
 
- 
getGeneratorsRetrieves aCollectionsof all aggregatedfeature generators.- Returns:
- All aggregated generators in use.
 
 
-