Uses of Class opennlp.tools.ml.model.AbstractModel (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

## Uses of Class
opennlp.tools.ml.model.AbstractModel

- Packages that use AbstractModel
  Package | Description
  --- | ---
  opennlp.tools.chunker | Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
  opennlp.tools.lemmatizer | Package related with the lemmatizer tool
  opennlp.tools.ml.maxent | Provides main functionality of the maxent package including data structures and algorithms for parameter estimation.
  opennlp.tools.ml.maxent.io | Provides the I/O functionality of the maxent package including reading and writing models in several formats.
  opennlp.tools.ml.maxent.quasinewton |
  opennlp.tools.ml.model |
  opennlp.tools.ml.naivebayes |
  opennlp.tools.ml.perceptron |
  opennlp.tools.namefind | Package related to finding proper names and numeric amounts.
  opennlp.tools.postag | Package related to part-of-speech tagging.
  opennlp.tools.util.model |

- - ### Uses of AbstractModel in opennlp.tools.chunker

    Methods in opennlp.tools.chunker with parameters of type AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `Event[]` | ChunkSampleSequenceStream.`updateContext(Sequence sequence, AbstractModel model)`

  - ### Uses of AbstractModel in opennlp.tools.lemmatizer

    Methods in opennlp.tools.lemmatizer with parameters of type AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `Event[]` | LemmaSampleSequenceStream.`updateContext(Sequence sequence, AbstractModel model)`

  - ### Uses of AbstractModel in opennlp.tools.ml.maxent

    Subclasses of AbstractModel in opennlp.tools.ml.maxent
    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).

  - ### Uses of AbstractModel in opennlp.tools.ml.maxent.io

    Methods in opennlp.tools.ml.maxent.io that return AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `AbstractModel` | GISModelReader.`constructModel()` Retrieve a model from disk.

    Constructors in opennlp.tools.ml.maxent.io with parameters of type AbstractModel
    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)`
    `QNModelWriter(AbstractModel model)`

  - ### Uses of AbstractModel in opennlp.tools.ml.maxent.quasinewton

    Subclasses of AbstractModel in opennlp.tools.ml.maxent.quasinewton
    Modifier and Type | Class and Description
    --- | ---
    `class` | `QNModel`

    Methods in opennlp.tools.ml.maxent.quasinewton that return AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `AbstractModel` | QNTrainer.`doTrain(DataIndexer indexer)`

  - ### Uses of AbstractModel in opennlp.tools.ml.model

    Methods in opennlp.tools.ml.model that return AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `AbstractModel` | GenericModelReader.`constructModel()`
    `abstract AbstractModel` | AbstractModelReader.`constructModel()`
    `AbstractModel` | AbstractModelReader.`getModel()`

    Methods in opennlp.tools.ml.model with parameters of type AbstractModel
    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.

    Constructors in opennlp.tools.ml.model with parameters of type AbstractModel
    Constructor and Description
    `GenericModelWriter(AbstractModel model, DataOutputStream dos)`
    `GenericModelWriter(AbstractModel model, File file)`

  - ### Uses of AbstractModel in opennlp.tools.ml.naivebayes

    Subclasses of AbstractModel in opennlp.tools.ml.naivebayes
    Modifier and Type | Class and Description
    --- | ---
    `class` | `NaiveBayesModel` Class implementing the multinomial Naive Bayes classifier model.

    Methods in opennlp.tools.ml.naivebayes that return AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `AbstractModel` | NaiveBayesModelReader.`constructModel()` Retrieve a model from disk.
    `AbstractModel` | NaiveBayesTrainer.`doTrain(DataIndexer indexer)`
    `AbstractModel` | NaiveBayesTrainer.`trainModel(DataIndexer di)`

    Constructors in opennlp.tools.ml.naivebayes with parameters of type AbstractModel
    Constructor and Description
    `BinaryNaiveBayesModelWriter(AbstractModel model, DataOutputStream dos)` Constructor which takes a NaiveBayesModel and a DataOutputStream and prepares itself to write the model to that stream.
    `BinaryNaiveBayesModelWriter(AbstractModel model, File f)` Constructor which takes a NaiveBayesModel and a File and prepares itself to write the model to that file.
    `NaiveBayesModelWriter(AbstractModel model)`
    `PlainTextNaiveBayesModelWriter(AbstractModel model, BufferedWriter bw)` Constructor which takes a NaiveBayesModel and a BufferedWriter and prepares itself to write the model to that writer.
    `PlainTextNaiveBayesModelWriter(AbstractModel model, File f)` Constructor which takes a NaiveBayesModel and a File and prepares itself to write the model to that file.

  - ### Uses of AbstractModel in opennlp.tools.ml.perceptron

    Subclasses of AbstractModel in opennlp.tools.ml.perceptron
    Modifier and Type | Class and Description
    --- | ---
    `class` | `PerceptronModel`

    Methods in opennlp.tools.ml.perceptron that return AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `AbstractModel` | PerceptronModelReader.`constructModel()` Retrieve a model from disk.
    `AbstractModel` | PerceptronTrainer.`doTrain(DataIndexer indexer)`
    `AbstractModel` | SimplePerceptronSequenceTrainer.`doTrain(SequenceStream events)`
    `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)`

    Constructors in opennlp.tools.ml.perceptron with parameters of type AbstractModel
    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)`

  - ### Uses of AbstractModel in opennlp.tools.namefind

    Methods in opennlp.tools.namefind with parameters of type AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `Event[]` | NameSampleSequenceStream.`updateContext(Sequence sequence, AbstractModel model)`

  - ### Uses of AbstractModel in opennlp.tools.postag

    Methods in opennlp.tools.postag with parameters of type AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `Event[]` | POSSampleSequenceStream.`updateContext(Sequence sequence, AbstractModel model)`
    `protected void` | POSTaggerFactory.`validatePOSDictionary(POSDictionary posDict, AbstractModel posModel)`

  - ### Uses of AbstractModel in opennlp.tools.util.model

    Methods in opennlp.tools.util.model that return AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `AbstractModel` | GenericModelSerializer.`create(InputStream in)`

    Methods in opennlp.tools.util.model with parameters of type AbstractModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | GenericModelSerializer.`serialize(AbstractModel artifact, OutputStream out)`

Copyright © 2026 The Apache Software Foundation. All rights reserved.