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, waitcreateFeaturespublic void updateAdaptiveData(String[] tokens, String[] outcomes)
AdaptiveFeatureGeneratorupdateAdaptiveData in interface AdaptiveFeatureGeneratortokens - The tokens of the sentence or other text unit which has been processed.outcomes - The outcomes associated with the specified tokens.public void clearAdaptiveData()
AdaptiveFeatureGeneratorclearAdaptiveData in interface AdaptiveFeatureGeneratorCopyright © 2015 The Apache Software Foundation. All rights reserved.