Class BrownTokenClassFeatureGenerator
java.lang.Object
opennlp.tools.util.featuregen.BrownTokenClassFeatureGenerator
- All Implemented Interfaces:
opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
public class BrownTokenClassFeatureGenerator
extends Object
implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
Generates
BrownCluster features for current token and token class.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates aBrownTokenClassFeatureGeneratorvia a specifiedBrownCluster. -
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
-
BrownTokenClassFeatureGenerator
Instantiates aBrownTokenClassFeatureGeneratorvia a specifiedBrownCluster.- Parameters:
dict- The tokendictionaryto use.
-
-
Method Details
-
createFeatures
-