Package opennlp.tools.util.featuregen
Klasse AggregatedFeatureGenerator
java.lang.Object
opennlp.tools.util.featuregen.AggregatedFeatureGenerator
- Alle implementierten Schnittstellen:
AdaptiveFeatureGenerator
The
AggregatedFeatureGenerator
aggregates a set of
AdaptiveFeatureGenerator
s and calls them to generate the features.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAggregatedFeatureGenerator
(Collection<AdaptiveFeatureGenerator> generators) AggregatedFeatureGenerator
(AdaptiveFeatureGenerator... generators) Initializes the current instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Calls theAdaptiveFeatureGenerator.clearAdaptiveData()
method on all aggregatedAdaptiveFeatureGenerator
s.void
createFeatures
(List<String> features, String[] tokens, int index, String[] previousOutcomes) Calls theAdaptiveFeatureGenerator.createFeatures(List, String[], int, String[])
method on all aggregatedAdaptiveFeatureGenerator
s.Retrieves aCollections
of all aggregatedAdaptiveFeatureGenerator
s.void
updateAdaptiveData
(String[] tokens, String[] outcomes) Calls theAdaptiveFeatureGenerator.updateAdaptiveData(String[], String[])
method on all aggregatedAdaptiveFeatureGenerator
s.
-
Konstruktordetails
-
AggregatedFeatureGenerator
Initializes the current instance.- Parameter:
generators
- array of generators, null values are not permitted
-
AggregatedFeatureGenerator
-
-
Methodendetails
-
clearAdaptiveData
public void clearAdaptiveData()Calls theAdaptiveFeatureGenerator.clearAdaptiveData()
method on all aggregatedAdaptiveFeatureGenerator
s.- Angegeben von:
clearAdaptiveData
in SchnittstelleAdaptiveFeatureGenerator
-
createFeatures
public void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) Calls theAdaptiveFeatureGenerator.createFeatures(List, String[], int, String[])
method on all aggregatedAdaptiveFeatureGenerator
s.- Angegeben von:
createFeatures
in SchnittstelleAdaptiveFeatureGenerator
- Parameter:
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.
-
updateAdaptiveData
Calls theAdaptiveFeatureGenerator.updateAdaptiveData(String[], String[])
method on all aggregatedAdaptiveFeatureGenerator
s.- Angegeben von:
updateAdaptiveData
in SchnittstelleAdaptiveFeatureGenerator
- Parameter:
tokens
- The tokens of the sentence or other text unit which has been processed.outcomes
- The outcomes associated with the specified tokens.
-
getGenerators
Retrieves aCollections
of all aggregatedAdaptiveFeatureGenerator
s.- Gibt zurück:
- all aggregated generators
-