Package | Description |
---|---|
opennlp.maxent |
Provides main functionality of the maxent package including data structures and
algorithms for parameter estimation.
|
opennlp.maxent.io |
Provides the I/O functionality of the maxent package including reading
and writting models in several formats.
|
opennlp.maxent.quasinewton | |
opennlp.model | |
opennlp.perceptron | |
opennlp.tools.chunker |
Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
|
opennlp.tools.coref |
Package related to performing coreference resolution.
|
opennlp.tools.doccat |
Package for classifying a document into a category.
|
opennlp.tools.namefind |
Package related to finding proper names and numeric amounts.
|
opennlp.tools.parser |
Package containing common code for performing full syntactic parsing.
|
opennlp.tools.parser.chunking |
Package containing code for performing full syntactic parsing using shift/reduce-style decisions.
|
opennlp.tools.parser.treeinsert |
Package containing experimental code for performing full syntactic
parsing using attachment decisions.
|
opennlp.tools.postag |
Package related to part-of-speech tagging.
|
opennlp.tools.sentdetect |
Package related to identifying sentece boundries.
|
opennlp.tools.tokenize |
Contains classes related to finding token or words in a string.
|
opennlp.tools.util.model |
Modifier and Type | Class and Description |
---|---|
class |
GISModel
A maximum entropy model which has been trained using the Generalized
Iterative Scaling procedure (implemented in GIS.java).
|
Modifier and Type | Method and Description |
---|---|
AbstractModel |
GISModelReader.constructModel()
Retrieve a model from disk.
|
AbstractModel |
QNModelReader.constructModel() |
Constructor and Description |
---|
BinaryGISModelWriter(AbstractModel model,
DataOutputStream dos)
Constructor which takes a GISModel and a DataOutputStream and prepares
itself to write the model to that stream.
|
BinaryGISModelWriter(AbstractModel model,
File f)
Constructor which takes a GISModel and a File and prepares itself to write
the model to that file.
|
BinaryQNModelWriter(AbstractModel model,
DataOutputStream dos)
Constructor which takes a GISModel and a DataOutputStream and prepares
itself to write the model to that stream.
|
BinaryQNModelWriter(AbstractModel model,
File f)
Constructor which takes a GISModel and a File and prepares itself to write
the model to that file.
|
GISModelWriter(AbstractModel model) |
ObjectGISModelWriter(AbstractModel model,
ObjectOutputStream dos)
Constructor which takes a GISModel and a ObjectOutputStream and prepares
itself to write the model to that stream.
|
ObjectQNModelWriter(AbstractModel model,
ObjectOutputStream dos)
Constructor which takes a GISModel and a ObjectOutputStream and prepares
itself to write the model to that stream.
|
PlainTextGISModelWriter(AbstractModel model,
BufferedWriter bw)
Constructor which takes a GISModel and a BufferedWriter and prepares
itself to write the model to that writer.
|
PlainTextGISModelWriter(AbstractModel model,
File f)
Constructor which takes a GISModel and a File and prepares itself to
write the model to that file.
|
QNModelWriter(AbstractModel model) |
SuffixSensitiveGISModelWriter(AbstractModel model,
File f)
Constructor which takes a GISModel and a File and invokes the
GISModelWriter appropriate for the suffix.
|
Modifier and Type | Class and Description |
---|---|
class |
QNModel |
Modifier and Type | Method and Description |
---|---|
abstract AbstractModel |
AbstractModelReader.constructModel() |
AbstractModel |
GenericModelReader.constructModel() |
AbstractModel |
AbstractModelReader.getModel() |
static AbstractModel |
TrainUtil.train(EventStream events,
Map<String,String> trainParams,
Map<String,String> reportMap) |
static AbstractModel |
TrainUtil.train(SequenceStream events,
Map<String,String> trainParams,
Map<String,String> reportMap) |
Modifier and Type | Method and Description |
---|---|
Event[] |
SequenceStream.updateContext(Sequence sequence,
AbstractModel model)
Creates a new event array based on the outcomes predicted by the specified parameters
for the specified sequence.
|
Constructor and Description |
---|
GenericModelWriter(AbstractModel model,
DataOutputStream dos) |
GenericModelWriter(AbstractModel model,
File file) |
Modifier and Type | Class and Description |
---|---|
class |
PerceptronModel |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
PerceptronModelReader.constructModel()
Retrieve a model from disk.
|
AbstractModel |
PerceptronTrainer.trainModel(int iterations,
DataIndexer di,
int cutoff) |
AbstractModel |
PerceptronTrainer.trainModel(int iterations,
DataIndexer di,
int cutoff,
boolean useAverage) |
AbstractModel |
SimplePerceptronSequenceTrainer.trainModel(int iterations,
SequenceStream sequenceStream,
int cutoff,
boolean useAverage) |
Constructor and Description |
---|
BinaryPerceptronModelWriter(AbstractModel model,
DataOutputStream dos)
Constructor which takes a GISModel and a DataOutputStream and prepares
itself to write the model to that stream.
|
BinaryPerceptronModelWriter(AbstractModel model,
File f)
Constructor which takes a GISModel and a File and prepares itself to
write the model to that file.
|
PerceptronModelWriter(AbstractModel model) |
PlainTextPerceptronModelWriter(AbstractModel model,
BufferedWriter bw)
Constructor which takes a PerceptronModel and a BufferedWriter and prepares
itself to write the model to that writer.
|
PlainTextPerceptronModelWriter(AbstractModel model,
File f)
Constructor which takes a PerceptronModel and a File and prepares itself to
write the model to that file.
|
SuffixSensitivePerceptronModelWriter(AbstractModel model,
File f)
Constructor which takes a GISModel and a File and invokes the
GISModelWriter appropriate for the suffix.
|
Modifier and Type | Method and Description |
---|---|
AbstractModel |
ChunkerModel.getChunkerModel() |
Constructor and Description |
---|
ChunkerModel(String languageCode,
AbstractModel chunkerModel)
Deprecated.
Use
instead. |
ChunkerModel(String languageCode,
AbstractModel chunkerModel,
ChunkerFactory factory) |
ChunkerModel(String languageCode,
AbstractModel chunkerModel,
Map<String,String> manifestInfoEntries)
Deprecated.
|
ChunkerModel(String languageCode,
AbstractModel chunkerModel,
Map<String,String> manifestInfoEntries,
ChunkerFactory factory) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
CorefModel.getCommonNounResolverModel() |
AbstractModel |
CorefModel.getDefiniteNounResolverModel() |
AbstractModel |
CorefModel.getNumberModel() |
AbstractModel |
CorefModel.getPluralNounResolverModel() |
AbstractModel |
CorefModel.getPluralPronounResolverModel() |
AbstractModel |
CorefModel.getProperNounResolverModel() |
AbstractModel |
CorefModel.getSimModel() |
AbstractModel |
CorefModel.getSingularPronounResolverModel() |
AbstractModel |
CorefModel.getSpeechPronounResolverModel() |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
DoccatModel.getChunkerModel() |
static AbstractModel |
DocumentCategorizerME.train(DocumentCategorizerEventStream eventStream)
Deprecated.
|
Constructor and Description |
---|
DoccatModel(String languageCode,
AbstractModel doccatModel) |
DoccatModel(String languageCode,
AbstractModel doccatModel,
Map<String,String> manifestInfoEntries) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
TokenNameFinderModel.getNameFinderModel()
Retrieves the
TokenNameFinder model. |
Modifier and Type | Method and Description |
---|---|
Event[] |
NameSampleSequenceStream.updateContext(Sequence sequence,
AbstractModel model) |
Constructor and Description |
---|
TokenNameFinderModel(String languageCode,
AbstractModel nameFinderModel,
byte[] generatorDescriptor,
Map<String,Object> resources,
Map<String,String> manifestInfoEntries) |
TokenNameFinderModel(String languageCode,
AbstractModel nameFinderModel,
Map<String,Object> resources,
Map<String,String> manifestInfoEntries) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
ParserModel.getAttachModel() |
AbstractModel |
ParserModel.getBuildModel() |
AbstractModel |
ParserModel.getCheckModel() |
Modifier and Type | Method and Description |
---|---|
ParserModel |
ParserModel.updateBuildModel(AbstractModel buildModel) |
ParserModel |
ParserModel.updateCheckModel(AbstractModel checkModel) |
Constructor and Description |
---|
ParserModel(String languageCode,
AbstractModel buildModel,
AbstractModel checkModel,
AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType) |
ParserModel(String languageCode,
AbstractModel buildModel,
AbstractModel checkModel,
AbstractModel attachModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType modelType,
Map<String,String> manifestInfoEntries) |
ParserModel(String languageCode,
AbstractModel buildModel,
AbstractModel checkModel,
POSModel parserTagger,
ChunkerModel chunkerTagger,
HeadRules headRules,
ParserType type,
Map<String,String> manifestInfoEntries) |
Modifier and Type | Method and Description |
---|---|
static AbstractModel |
Parser.train(EventStream es,
int iterations,
int cut)
Deprecated.
Please do not use anymore, use the ObjectStream train methods instead! This method
will be removed soon.
|
Modifier and Type | Method and Description |
---|---|
static AbstractModel |
Parser.train(EventStream es,
int iterations,
int cut)
Deprecated.
|
Constructor and Description |
---|
Parser(AbstractModel buildModel,
AbstractModel attachModel,
AbstractModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules)
Deprecated.
|
Parser(AbstractModel buildModel,
AbstractModel attachModel,
AbstractModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules,
int beamSize,
double advancePercentage)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected AbstractModel |
POSTaggerME.posModel
The maximum entropy model to use to evaluate contexts.
|
Modifier and Type | Method and Description |
---|---|
AbstractModel |
POSModel.getPosModel() |
static AbstractModel |
POSTaggerTrainer.trainMaxentModel(EventStream es,
int iterations,
int cut)
Deprecated.
|
static AbstractModel |
POSTaggerTrainer.trainPerceptronModel(EventStream es,
int iterations,
int cut)
Deprecated.
|
static AbstractModel |
POSTaggerTrainer.trainPerceptronModel(EventStream es,
int iterations,
int cut,
boolean useAverage)
Deprecated.
|
static AbstractModel |
POSTaggerTrainer.trainPerceptronSequenceModel(SequenceStream ss,
int iterations,
int cut,
boolean useAverage)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
POSTaggerTrainer.test(AbstractModel model)
Deprecated.
|
Event[] |
POSSampleSequenceStream.updateContext(Sequence sequence,
AbstractModel model) |
protected void |
POSTaggerFactory.validatePOSDictionary(POSDictionary posDict,
AbstractModel posModel) |
Constructor and Description |
---|
POSModel(String languageCode,
AbstractModel posModel,
Map<String,String> manifestInfoEntries,
POSTaggerFactory posFactory) |
POSModel(String languageCode,
AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
Deprecated.
|
POSModel(String languageCode,
AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
Map<String,String> manifestInfoEntries)
Deprecated.
|
POSTaggerME(AbstractModel model,
Dictionary dict)
Deprecated.
|
POSTaggerME(AbstractModel model,
Dictionary dict,
TagDictionary tagdict)
Deprecated.
|
POSTaggerME(AbstractModel model,
POSContextGenerator cg)
Deprecated.
|
POSTaggerME(AbstractModel model,
POSContextGenerator cg,
TagDictionary tagdict)
Deprecated.
|
POSTaggerME(AbstractModel model,
TagDictionary tagdict)
Deprecated.
|
POSTaggerME(int beamSize,
AbstractModel model,
POSContextGenerator cg,
TagDictionary tagdict)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AbstractModel |
SentenceModel.getMaxentModel() |
Constructor and Description |
---|
SentenceModel(String languageCode,
AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations) |
SentenceModel(String languageCode,
AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
char[] eosCharacters)
Deprecated.
Use
SentenceModel.SentenceModel(String, AbstractModel, Map, SentenceDetectorFactory)
instead and pass in a SentenceDetectorFactory |
SentenceModel(String languageCode,
AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
char[] eosCharacters,
Map<String,String> manifestInfoEntries)
Deprecated.
Use
SentenceModel.SentenceModel(String, AbstractModel, Map, SentenceDetectorFactory)
instead and pass in a SentenceDetectorFactory |
SentenceModel(String languageCode,
AbstractModel sentModel,
boolean useTokenEnd,
Dictionary abbreviations,
Map<String,String> manifestInfoEntries) |
SentenceModel(String languageCode,
AbstractModel sentModel,
Map<String,String> manifestInfoEntries,
SentenceDetectorFactory sdFactory) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
TokenizerModel.getMaxentModel() |
Constructor and Description |
---|
TokenizerModel(AbstractModel tokenizerModel,
Map<String,String> manifestInfoEntries,
TokenizerFactory tokenizerFactory)
Initializes the current instance.
|
TokenizerModel(String language,
AbstractModel tokenizerMaxentModel,
boolean useAlphaNumericOptimization)
Deprecated.
Use
TokenizerModel#TokenizerModel(String, AbstractModel, Map, TokenizerFactory)
instead and pass in a TokenizerFactory . |
TokenizerModel(String language,
AbstractModel tokenizerMaxentModel,
boolean useAlphaNumericOptimization,
Map<String,String> manifestInfoEntries)
Deprecated.
Use
TokenizerModel#TokenizerModel(String, AbstractModel, Map, TokenizerFactory)
instead and pass in a TokenizerFactory . |
TokenizerModel(String language,
AbstractModel tokenizerMaxentModel,
Dictionary abbreviations,
boolean useAlphaNumericOptimization,
Map<String,String> manifestInfoEntries)
Deprecated.
Use
TokenizerModel#TokenizerModel(String, AbstractModel, Map, TokenizerFactory)
instead and pass in a TokenizerFactory . |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
GenericModelSerializer.create(InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
GenericModelSerializer.serialize(AbstractModel artifact,
OutputStream out) |
static void |
ModelUtil.writeModel(AbstractModel model,
OutputStream out)
Writes the given model to the given
OutputStream . |
Copyright © 2019 The Apache Software Foundation. All rights reserved.