public abstract class FeatureGeneratorAdapter extends java.lang.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(java.lang.String[] tokens,
java.lang.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(java.lang.String[] tokens, java.lang.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 © 2010 - 2020 Adobe. All Rights Reserved