|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.util.featuregen.AggregatedFeatureGenerator
public class AggregatedFeatureGenerator
The AggregatedFeatureGenerator
aggregates a set of
AdaptiveFeatureGenerator
s and calls them to generate the features.
Constructor Summary | |
---|---|
AggregatedFeatureGenerator(AdaptiveFeatureGenerator... generators)
Initializes the current instance. |
|
AggregatedFeatureGenerator(Collection<AdaptiveFeatureGenerator> generators)
|
Method Summary | |
---|---|
void |
clearAdaptiveData()
Calls the AdaptiveFeatureGenerator.clearAdaptiveData() method
on all aggregated AdaptiveFeatureGenerator s. |
void |
createFeatures(List<String> features,
String[] tokens,
int index,
String[] previousOutcomes)
Calls the AdaptiveFeatureGenerator.createFeatures(List, String[], int, String[])
method on all aggregated AdaptiveFeatureGenerator s. |
Collection<AdaptiveFeatureGenerator> |
getGenerators()
Retrieves a Collections of all aggregated
AdaptiveFeatureGenerator s. |
void |
updateAdaptiveData(String[] tokens,
String[] outcomes)
Calls the AdaptiveFeatureGenerator.updateAdaptiveData(String[], String[])
method on all aggregated AdaptiveFeatureGenerator s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregatedFeatureGenerator(AdaptiveFeatureGenerator... generators)
generators
- array of generators, null values are not permittedpublic AggregatedFeatureGenerator(Collection<AdaptiveFeatureGenerator> generators)
Method Detail |
---|
public void clearAdaptiveData()
AdaptiveFeatureGenerator.clearAdaptiveData()
method
on all aggregated AdaptiveFeatureGenerator
s.
clearAdaptiveData
in interface AdaptiveFeatureGenerator
public void createFeatures(List<String> features, String[] tokens, int index, 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(String[] tokens, 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 Collection<AdaptiveFeatureGenerator> getGenerators()
Collections
of all aggregated
AdaptiveFeatureGenerator
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |