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