public class PreviousMapTokenFeatureGenerator
extends opennlp.tools.util.featuregen.CustomFeatureGenerator
| Constructor and Description |
|---|
PreviousMapTokenFeatureGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdaptiveData()
Clears the previous map.
|
void |
createFeatures(List<String> features,
String[] tokens,
int index,
String[] preds) |
void |
init(Map<String,String> properties,
opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider resourceProvider) |
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)
public void updateAdaptiveData(String[] tokens, String[] outcomes)
public void clearAdaptiveData()
public void init(Map<String,String> properties, opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider resourceProvider) throws opennlp.tools.util.InvalidFormatException
init in class opennlp.tools.util.featuregen.CustomFeatureGeneratoropennlp.tools.util.InvalidFormatExceptionCopyright © 2015 IXA pipes. All rights reserved.