Package opennlp.tools.util.featuregen
This package contains classes for generating sequence features.
-
Interface Summary Interface Description AdaptiveFeatureGenerator An interface for generating features for name entity identification and for updating document level contexts.ArtifactToSerializerMapper FeatureGeneratorFactory Deprecated. do not use this interface, will be removed!FeatureGeneratorResourceProvider TheFeatureGeneratorResourceProvider
provides access to the resources provided in the model. -
Class Summary Class Description AdditionalContextFeatureGenerator TheAdditionalContextFeatureGenerator
generates the context from the passed in additional context.AggregatedFeatureGenerator TheAggregatedFeatureGenerator
aggregates a set ofAdaptiveFeatureGenerator
s and calls them to generate the features.BigramNameFeatureGenerator BrownBigramFeatureGenerator Generates Brown cluster features for token bigrams.BrownCluster Class to load a Brown cluster document: word\tword_class\tprob http://metaoptimize.com/projects/wordreprs/ The file containing the clustering lexicon has to be passed as the value of the dict attribute of each BrownCluster feature generator.BrownCluster.BrownClusterSerializer BrownTokenClasses Obtain the paths listed in the pathLengths array from the Brown class.BrownTokenClassFeatureGenerator Generates Brown cluster features for current token and token class.BrownTokenFeatureGenerator Generates Brown cluster features for current token.CachedFeatureGenerator Caches features of the aggregatedAdaptiveFeatureGenerator
s.CharacterNgramFeatureGenerator TheCharacterNgramFeatureGenerator
uses character ngrams to generate features about each token.CustomFeatureGenerator DictionaryFeatureGenerator TheDictionaryFeatureGenerator
uses theDictionaryNameFinder
to generated features for detected names based on theInSpanGenerator
.DocumentBeginFeatureGenerator FastTokenClassFeatureGenerator Deprecated. UseTokenClassFeatureGenerator
instead!FeatureGeneratorAdapter This class provides empty implementations of some of the optional methods inAdditionalContextFeatureGenerator
to make implementing feature generators easier.FeatureGeneratorUtil This class provide common utilities for feature generation.GeneratorFactory Creates a set of feature generators based on a provided XML descriptor.InSpanGenerator Generates features if the tokens are recognized by the providedTokenNameFinder
.OutcomePriorFeatureGenerator The definition feature maps the underlying distribution of outcomes.PrefixFeatureGenerator PreviousMapFeatureGenerator ThisFeatureGeneratorAdapter
generates features indicating the outcome associated with a previously occuring word.PreviousTwoMapFeatureGenerator ThisFeatureGeneratorAdapter
generates features indicating the outcome associated with two previously occuring words.SentenceFeatureGenerator This feature generator creates sentence begin and end features.StringPattern Recognizes predefined patterns in strings.SuffixFeatureGenerator TokenClassFeatureGenerator Generates features for different for the class of the token.TokenFeatureGenerator Generates a feature which contains the token itself.TokenPatternFeatureGenerator Partitions tokens into sub-tokens based on character classes and generates class features for each of the sub-tokens and combinations of those sub-tokens.TrigramNameFeatureGenerator Adds trigram features based on tokens and token classes.WindowFeatureGenerator Generates previous and next features for a givenAdaptiveFeatureGenerator
.WordClusterDictionary WordClusterDictionary.WordClusterDictionarySerializer WordClusterFeatureGenerator