Class SuffixFeatureGenerator
java.lang.Object
opennlp.tools.util.featuregen.SuffixFeatureGenerator
- All Implemented Interfaces:
opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
public class SuffixFeatureGenerator
extends Object
implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
A feature generator implementation that generates suffix-based features.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntializes aSuffixFeatureGenerator.SuffixFeatureGenerator(int suffixLength) Intializes aSuffixFeatureGeneratorwith the specifiedsuffixLength. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
clearAdaptiveData, updateAdaptiveData
-
Constructor Details
-
SuffixFeatureGenerator
public SuffixFeatureGenerator()Intializes aSuffixFeatureGenerator. The suffix length is set to the value ofDEFAULT_MAX_LENGTH. -
SuffixFeatureGenerator
public SuffixFeatureGenerator(int suffixLength) Intializes aSuffixFeatureGeneratorwith the specifiedsuffixLength.- Parameters:
suffixLength- The upper boundary suffix length to use.
-
-
Method Details
-
createFeatures
-