public abstract class FeatureGeneratorAdapter extends Object implements AdaptiveFeatureGenerator
AdditionalContextFeatureGenerator
to make implementing feature generators
easier.Constructor and Description |
---|
FeatureGeneratorAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
clearAdaptiveData()
Informs the feature generator that the context of the adaptive data (typically a document)
is no longer valid.
|
void |
updateAdaptiveData(String[] tokens,
String[] outcomes)
Informs the feature generator that the specified tokens have been classified with the
corresponding set of specified outcomes.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createFeatures
public void updateAdaptiveData(String[] tokens, String[] outcomes)
AdaptiveFeatureGenerator
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 void clearAdaptiveData()
AdaptiveFeatureGenerator
clearAdaptiveData
in interface AdaptiveFeatureGenerator
Copyright © 2015 The Apache Software Foundation. All rights reserved.