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 Deprecated. FeatureGeneratorResourceProvider TheFeatureGeneratorResourceProvider
provides access to the resources available 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.AggregatedFeatureGeneratorFactory BigramNameFeatureGenerator BigramNameFeatureGeneratorFactory BrownBigramFeatureGenerator Generates Brown cluster features for token bigrams.BrownCluster Class to load a Brown cluster document: word\tword_class\tprobBrownCluster.BrownClusterSerializer BrownClusterBigramFeatureGeneratorFactory Generates Brown clustering features for token bigrams.BrownClusterTokenClassFeatureGeneratorFactory Generates Brown clustering features for token classes.BrownClusterTokenFeatureGeneratorFactory Generates Brown clustering features for current token.BrownTokenClasses Obtain the paths listed in the pathLengths array from the Brown class.BrownTokenClassFeatureGenerator GeneratesBrownCluster
features for current token and token class.BrownTokenFeatureGenerator GeneratesBrownCluster
features for current token.CachedFeatureGenerator Caches features of the aggregatedgenerators
.CachedFeatureGeneratorFactory CharacterNgramFeatureGenerator TheCharacterNgramFeatureGenerator
uses character ngrams to generate features about each token.CharacterNgramFeatureGeneratorFactory CustomFeatureGenerator Deprecated. DefinitionFeatureGeneratorFactory DictionaryFeatureGenerator TheDictionaryFeatureGenerator
uses theDictionaryNameFinder
to generated features for detected names based on theInSpanGenerator
.DictionaryFeatureGeneratorFactory DocumentBeginFeatureGenerator DocumentBeginFeatureGeneratorFactory FeatureGeneratorUtil This class provide common utilities for feature generation.GeneratorFactory Creates a set of feature generators based on a provided XML descriptor.GeneratorFactory.AbstractXmlFeatureGeneratorFactory InSpanGenerator Generates features if the tokens are recognized by the providedTokenNameFinder
.OutcomePriorFeatureGenerator The definition feature maps the underlying distribution of outcomes.PosTaggerFeatureGenerator PosTaggerFeatureGeneratorFactory POSTaggerNameFeatureGenerator Adds the token POS Tag as feature.POSTaggerNameFeatureGeneratorFactory PrefixFeatureGenerator PrefixFeatureGeneratorFactory PreviousMapFeatureGenerator ThisAdaptiveFeatureGenerator
generates features indicating the outcome associated with a previously occurring word.PreviousMapFeatureGeneratorFactory PreviousTwoMapFeatureGenerator ThisAdaptiveFeatureGenerator
generates features indicating the outcome associated with two previously occurring words.SentenceFeatureGenerator This feature generator creates sentence begin and end features.SentenceFeatureGeneratorFactory StringPattern Recognizes predefined patterns in strings.SuffixFeatureGenerator SuffixFeatureGeneratorFactory TokenClassFeatureGenerator Generates features for different for the class of the token.TokenClassFeatureGeneratorFactory TokenFeatureGenerator Generates a feature which contains the token itself.TokenFeatureGeneratorFactory 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.TokenPatternFeatureGeneratorFactory TrigramNameFeatureGenerator Adds trigram features based on tokens and token classes.TrigramNameFeatureGeneratorFactory WindowFeatureGenerator Generates previous and next features for a givenAdaptiveFeatureGenerator
.WindowFeatureGeneratorFactory WordClusterDictionary WordClusterDictionary.WordClusterDictionarySerializer WordClusterFeatureGenerator WordClusterFeatureGeneratorFactory Defines a word cluster generator factory; it reads an element containing 'w2vwordcluster' as a tag name; these clusters are typically produced by word2vec or clark pos induction systems.