Uses of Interface
opennlp.tools.doccat.FeatureGenerator
Packages that use FeatureGenerator
-
Uses of FeatureGenerator in opennlp.tools.doccat
Classes in opennlp.tools.doccat that implement FeatureGeneratorModifier and TypeClassDescriptionclassGenerates a feature for each word in a document.classGenerates document features from the emoji annotation layer: for every annotated token the project-authored coarse sentiment score (emojiSentiment=2), the entity type (emojiType=HEART), the document category hint (emojiCategory=SMILEYS_AND_EMOTION), and for flags the ISO 3166 region (emojiRegion=DE).classGenerates ngram features for a document.Fields in opennlp.tools.doccat declared as FeatureGeneratorModifier and TypeFieldDescriptionprivate FeatureGenerator[]DoccatFactory.featureGeneratorsprivate final FeatureGenerator[]DocumentCategorizerContextGenerator.mFeatureGeneratorsMethods in opennlp.tools.doccat that return FeatureGeneratorModifier and TypeMethodDescriptionDoccatFactory.getFeatureGenerators()private FeatureGenerator[]DoccatFactory.loadFeatureGenerators(String classNames) Methods in opennlp.tools.doccat with parameters of type FeatureGeneratorModifier and TypeMethodDescriptionstatic DoccatFactoryDoccatFactory.create(String subclassName, FeatureGenerator[] featureGenerators) Factory method the framework uses create a newDoccatFactory.protected voidDoccatFactory.init(FeatureGenerator[] featureGenerators) voidDoccatFactory.setFeatureGenerators(FeatureGenerator[] featureGenerators) Constructors in opennlp.tools.doccat with parameters of type FeatureGeneratorModifierConstructorDescriptionDoccatFactory(FeatureGenerator[] featureGenerators) Instantiates aDoccatFactorythat provides the default implementation of the resources.(package private)DocumentCategorizerContextGenerator(FeatureGenerator... featureGenerators) Instantiates aDocumentCategorizerContextGeneratorinstance.DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples, FeatureGenerator... featureGenerators) Initializes aDocumentCategorizerEventStreamvia samples andfeature generators.