public class PreviousMapFeatureGenerator extends Object implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
| Constructor and Description |
|---|
PreviousMapFeatureGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdaptiveData()
Clears the previous map.
|
void |
createFeatures(List<String> features,
String[] tokens,
int index,
String[] preds) |
void |
updateAdaptiveData(String[] tokens,
String[] outcomes)
Generates previous decision features for the token based on contents of the previous map.
|
public void createFeatures(List<String> features, String[] tokens, int index, String[] preds)
createFeatures in interface opennlp.tools.util.featuregen.AdaptiveFeatureGeneratorpublic void updateAdaptiveData(String[] tokens, String[] outcomes)
updateAdaptiveData in interface opennlp.tools.util.featuregen.AdaptiveFeatureGeneratorpublic void clearAdaptiveData()
clearAdaptiveData in interface opennlp.tools.util.featuregen.AdaptiveFeatureGeneratorCopyright © 2016 IXA pipes. All rights reserved.