Class POSTaggerNameFeatureGenerator
java.lang.Object
opennlp.tools.util.featuregen.POSTaggerNameFeatureGenerator
- All Implemented Interfaces:
opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
public class POSTaggerNameFeatureGenerator
extends Object
implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
Adds the token POS tag as feature. Requires a
POSTagger at runtime.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPOSTaggerNameFeatureGenerator(POSModel aPosModel) Initializes aPOSTaggerNameFeatureGeneratorwith the specifiedPOSModel.POSTaggerNameFeatureGenerator(opennlp.tools.postag.POSTagger aPosTagger) Initializes aPOSTaggerNameFeatureGeneratorwith the specifiedPOSTagger. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFeatures(List<String> feats, String[] toks, int index, String[] preds) 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
-
POSTaggerNameFeatureGenerator
public POSTaggerNameFeatureGenerator(opennlp.tools.postag.POSTagger aPosTagger) Initializes aPOSTaggerNameFeatureGeneratorwith the specifiedPOSTagger.- Parameters:
aPosTagger- A POSTagger instance to be used.
-
POSTaggerNameFeatureGenerator
Initializes aPOSTaggerNameFeatureGeneratorwith the specifiedPOSModel.- Parameters:
aPosModel- APOSModelto be used for the internalPOSTagger.
-
-
Method Details
-
createFeatures
-