public class WordShapeSuperSenseFeatureGenerator
extends opennlp.tools.util.featuregen.CustomFeatureGenerator
| Constructor and Description |
|---|
WordShapeSuperSenseFeatureGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdaptiveData() |
void |
createFeatures(List<String> features,
String[] tokens,
int index,
String[] preds) |
void |
init(Map<String,String> properties,
opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider resources) |
static String |
normalize(String token)
Normalize upper case, lower case, digits and duplicate characters.
|
void |
updateAdaptiveData(String[] tokens,
String[] outcomes) |
public void createFeatures(List<String> features, String[] tokens, int index, String[] preds)
public static String normalize(String token)
token - the token to be normalizedpublic void clearAdaptiveData()
public void init(Map<String,String> properties, opennlp.tools.util.featuregen.FeatureGeneratorResourceProvider resources) throws opennlp.tools.util.InvalidFormatException
init in class opennlp.tools.util.featuregen.CustomFeatureGeneratoropennlp.tools.util.InvalidFormatExceptionCopyright © 2015 IXA pipes. All rights reserved.