public class AggregatedFeatureGenerator extends Object implements AdaptiveFeatureGenerator
AggregatedFeatureGenerator aggregates a set of
AdaptiveFeatureGenerators and calls them to generate the features.| Constructor and Description |
|---|
AggregatedFeatureGenerator(AdaptiveFeatureGenerator... generators)
Initializes the current instance.
|
AggregatedFeatureGenerator(Collection<AdaptiveFeatureGenerator> generators) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdaptiveData()
Calls the
AdaptiveFeatureGenerator.clearAdaptiveData() method
on all aggregated AdaptiveFeatureGenerators. |
void |
createFeatures(List<String> features,
String[] tokens,
int index,
String[] previousOutcomes)
Calls the
AdaptiveFeatureGenerator.createFeatures(List, String[], int, String[])
method on all aggregated AdaptiveFeatureGenerators. |
Collection<AdaptiveFeatureGenerator> |
getGenerators()
Retrieves a
Collections of all aggregated
AdaptiveFeatureGenerators. |
void |
updateAdaptiveData(String[] tokens,
String[] outcomes)
Calls the
AdaptiveFeatureGenerator.updateAdaptiveData(String[], String[])
method on all aggregated AdaptiveFeatureGenerators. |
public AggregatedFeatureGenerator(AdaptiveFeatureGenerator... generators)
generators - array of generators, null values are not permittedpublic AggregatedFeatureGenerator(Collection<AdaptiveFeatureGenerator> generators)
public void clearAdaptiveData()
AdaptiveFeatureGenerator.clearAdaptiveData() method
on all aggregated AdaptiveFeatureGenerators.clearAdaptiveData in interface AdaptiveFeatureGeneratorpublic void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes)
AdaptiveFeatureGenerator.createFeatures(List, String[], int, String[])
method on all aggregated AdaptiveFeatureGenerators.createFeatures in interface AdaptiveFeatureGeneratorfeatures - 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.public void updateAdaptiveData(String[] tokens, String[] outcomes)
AdaptiveFeatureGenerator.updateAdaptiveData(String[], String[])
method on all aggregated AdaptiveFeatureGenerators.updateAdaptiveData in interface AdaptiveFeatureGeneratortokens - The tokens of the sentence or other text unit which has been processed.outcomes - The outcomes associated with the specified tokens.public Collection<AdaptiveFeatureGenerator> getGenerators()
Collections of all aggregated
AdaptiveFeatureGenerators.Copyright © 2015 The Apache Software Foundation. All rights reserved.