Package | Description |
---|---|
opennlp.tools.namefind |
Package related to finding proper names and numeric amounts.
|
opennlp.tools.util.featuregen |
This package contains classes for generating sequence features.
|
Modifier and Type | Method and Description |
---|---|
AdaptiveFeatureGenerator |
TokenNameFinderModel.createFeatureGenerators()
Deprecated.
use TokenNameFinderFactory.createFeatureGenerators instead!
|
AdaptiveFeatureGenerator |
TokenNameFinderFactory.createFeatureGenerators()
Creates the
AdaptiveFeatureGenerator . |
Modifier and Type | Method and Description |
---|---|
void |
NameContextGenerator.addFeatureGenerator(AdaptiveFeatureGenerator generator)
Adds a feature generator to this set of feature generators.
|
void |
DefaultNameContextGenerator.addFeatureGenerator(AdaptiveFeatureGenerator generator) |
static TokenNameFinderModel |
NameFinderME.train(String languageCode,
String type,
ObjectStream<NameSample> samples,
TrainingParameters trainParams,
AdaptiveFeatureGenerator generator,
Map<String,Object> resources)
Deprecated.
|
Constructor and Description |
---|
DefaultNameContextGenerator(AdaptiveFeatureGenerator... featureGenerators)
Creates a name context generator with the specified cache size.
|
NameFinderME(TokenNameFinderModel model,
AdaptiveFeatureGenerator generator,
int beamSize)
Deprecated.
the beam size is now configured during training time in the
trainer parameter file via beamSearch.beamSize
|
NameFinderME(TokenNameFinderModel model,
AdaptiveFeatureGenerator generator,
int beamSize,
SequenceValidator<String> sequenceValidator)
Deprecated.
the beam size is now configured during training time in the
trainer parameter file via beamSearch.beamSize
|
NameSampleSequenceStream(ObjectStream<NameSample> psi,
AdaptiveFeatureGenerator featureGen) |
NameSampleSequenceStream(ObjectStream<NameSample> psi,
AdaptiveFeatureGenerator featureGen,
boolean useOutcomes) |
Modifier and Type | Class and Description |
---|---|
class |
AdditionalContextFeatureGenerator
The
AdditionalContextFeatureGenerator generates the context from the passed
in additional context. |
class |
AggregatedFeatureGenerator
The
AggregatedFeatureGenerator aggregates a set of
AdaptiveFeatureGenerator s and calls them to generate the features. |
class |
BigramNameFeatureGenerator |
class |
BrownBigramFeatureGenerator
Generates Brown cluster features for token bigrams.
|
class |
BrownTokenClassFeatureGenerator
Generates Brown cluster features for current token and token class.
|
class |
BrownTokenFeatureGenerator
Generates Brown cluster features for current token.
|
class |
CachedFeatureGenerator
Caches features of the aggregated
AdaptiveFeatureGenerator s. |
class |
CharacterNgramFeatureGenerator
The
CharacterNgramFeatureGenerator uses character ngrams to
generate features about each token. |
class |
CustomFeatureGenerator |
class |
DictionaryFeatureGenerator
The
DictionaryFeatureGenerator uses the DictionaryNameFinder
to generated features for detected names based on the InSpanGenerator . |
class |
DocumentBeginFeatureGenerator |
class |
FastTokenClassFeatureGenerator
Deprecated.
Use
TokenClassFeatureGenerator instead! |
class |
FeatureGeneratorAdapter
This class provides empty implementations of some of the optional methods in
AdditionalContextFeatureGenerator to make implementing feature generators
easier. |
class |
InSpanGenerator
Generates features if the tokens are recognized by the provided
TokenNameFinder . |
class |
OutcomePriorFeatureGenerator
The definition feature maps the underlying distribution of outcomes.
|
class |
PrefixFeatureGenerator |
class |
PreviousMapFeatureGenerator
This
FeatureGeneratorAdapter generates features indicating the outcome associated with a previously occuring word. |
class |
PreviousTwoMapFeatureGenerator
This
FeatureGeneratorAdapter generates features indicating the outcome associated with two previously occuring words. |
class |
SentenceFeatureGenerator
This feature generator creates sentence begin and end features.
|
class |
SuffixFeatureGenerator |
class |
TokenClassFeatureGenerator
Generates features for different for the class of the token.
|
class |
TokenFeatureGenerator
Generates a feature which contains the token itself.
|
class |
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.
|
class |
TrigramNameFeatureGenerator
Adds trigram features based on tokens and token classes.
|
class |
WindowFeatureGenerator
Generates previous and next features for a given
AdaptiveFeatureGenerator . |
class |
WordClusterFeatureGenerator |
Modifier and Type | Method and Description |
---|---|
static AdaptiveFeatureGenerator |
GeneratorFactory.create(InputStream xmlDescriptorIn,
FeatureGeneratorResourceProvider resourceManager)
Creates an
AdaptiveFeatureGenerator from an provided XML descriptor. |
AdaptiveFeatureGenerator |
FeatureGeneratorFactory.createFeatureGenerator(FeatureGeneratorResourceProvider resourceProvider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Collection<AdaptiveFeatureGenerator> |
AggregatedFeatureGenerator.getGenerators()
Retrieves a
Collections of all aggregated
AdaptiveFeatureGenerator s. |
Constructor and Description |
---|
AggregatedFeatureGenerator(AdaptiveFeatureGenerator... generators)
Initializes the current instance.
|
CachedFeatureGenerator(AdaptiveFeatureGenerator... generators) |
WindowFeatureGenerator(AdaptiveFeatureGenerator... generators)
Initializes the current instance with the given parameters.
|
WindowFeatureGenerator(AdaptiveFeatureGenerator generator)
Initializes the current instance.
|
WindowFeatureGenerator(AdaptiveFeatureGenerator generator,
int prevWindowSize,
int nextWindowSize)
Initializes the current instance with the given parameters.
|
WindowFeatureGenerator(int prevWindowSize,
int nextWindowSize,
AdaptiveFeatureGenerator... generators)
Initializes the current instance with the given parameters.
|
Constructor and Description |
---|
AggregatedFeatureGenerator(Collection<AdaptiveFeatureGenerator> generators) |
Copyright © 2015 The Apache Software Foundation. All rights reserved.