|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.util.featuregen.FeatureGeneratorAdapter
public abstract class FeatureGeneratorAdapter
This class provides empty implementations of some of the optional methods in
AdditionalContextFeatureGenerator to make implementing feature generators
easier.
| Constructor Summary | |
|---|---|
FeatureGeneratorAdapter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface opennlp.tools.util.featuregen.AdaptiveFeatureGenerator |
|---|
createFeatures |
| Constructor Detail |
|---|
public FeatureGeneratorAdapter()
| Method Detail |
|---|
public void updateAdaptiveData(java.lang.String[] tokens,
java.lang.String[] outcomes)
AdaptiveFeatureGenerator
updateAdaptiveData 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()
AdaptiveFeatureGenerator
clearAdaptiveData in interface AdaptiveFeatureGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||