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

## Uses of Interface
opennlp.tools.ml.model.MaxentModel

- Packages that use MaxentModel
  Package | Description
  --- | ---
  opennlp.tools.chunker | Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
  opennlp.tools.doccat | Package for classifying a document into a category.
  opennlp.tools.langdetect |
  opennlp.tools.lemmatizer | Package related with the lemmatizer tool
  opennlp.tools.ml |
  opennlp.tools.ml.maxent | Provides main functionality of the maxent package including data structures and algorithms for parameter estimation.
  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.parser | Package containing common code for performing full syntactic parsing.
  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 |

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

    Methods in opennlp.tools.chunker that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `MaxentModel` | ChunkerModel.`getChunkerModel()` Deprecated. use getChunkerSequenceModel instead. This method will be removed soon.

    Constructors in opennlp.tools.chunker with parameters of type MaxentModel
    Constructor and Description
    `ChunkerModel(String languageCode, MaxentModel chunkerModel, ChunkerFactory factory)`
    `ChunkerModel(String languageCode, MaxentModel chunkerModel, int beamSize, Map<String,String> manifestInfoEntries, ChunkerFactory factory)`
    `ChunkerModel(String languageCode, MaxentModel chunkerModel, Map<String,String> manifestInfoEntries, ChunkerFactory factory)`

  - ### Uses of MaxentModel in opennlp.tools.doccat

    Methods in opennlp.tools.doccat that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `MaxentModel` | DoccatModel.`getMaxentModel()`

    Constructors in opennlp.tools.doccat with parameters of type MaxentModel
    Constructor and Description
    `DoccatModel(String languageCode, MaxentModel doccatModel, Map<String,String> manifestInfoEntries, DoccatFactory factory)`

  - ### Uses of MaxentModel in opennlp.tools.langdetect

    Methods in opennlp.tools.langdetect that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `MaxentModel` | LanguageDetectorModel.`getMaxentModel()`

    Constructors in opennlp.tools.langdetect with parameters of type MaxentModel
    Constructor and Description
    `LanguageDetectorModel(MaxentModel langdetectModel, Map<String,String> manifestInfoEntries, LanguageDetectorFactory factory)`

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

    Constructors in opennlp.tools.lemmatizer with parameters of type MaxentModel
    Constructor and Description
    `LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, int beamSize, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)`
    `LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, LemmatizerFactory factory)`
    `LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)`

  - ### Uses of MaxentModel in opennlp.tools.ml

    Fields in opennlp.tools.ml declared as MaxentModel
    Modifier and Type | Field and Description
    --- | ---
    `protected MaxentModel` | BeamSearch.`model`

    Methods in opennlp.tools.ml that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `abstract MaxentModel` | AbstractEventTrainer.`doTrain(DataIndexer indexer)`
    `abstract MaxentModel` | AbstractEventModelSequenceTrainer.`doTrain(SequenceStream events)`
    `MaxentModel` | AbstractEventTrainer.`train(DataIndexer indexer)`
    `MaxentModel` | EventTrainer.`train(DataIndexer indexer)`
    `MaxentModel` | AbstractEventTrainer.`train(ObjectStream<Event> events)`
    `MaxentModel` | EventTrainer.`train(ObjectStream<Event> events)`
    `MaxentModel` | EventModelSequenceTrainer.`train(SequenceStream events)`
    `MaxentModel` | AbstractEventModelSequenceTrainer.`train(SequenceStream events)`

    Constructors in opennlp.tools.ml with parameters of type MaxentModel
    Constructor and Description
    `BeamSearch(int size, MaxentModel model)` Creates new search object.
    `BeamSearch(int size, MaxentModel model, int cacheSize)`

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

    Classes in opennlp.tools.ml.maxent that implement MaxentModel
    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).

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

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

    Classes in opennlp.tools.ml.maxent.quasinewton that implement MaxentModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `QNModel`

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

    Classes in opennlp.tools.ml.model that implement MaxentModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractModel`

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

    Classes in opennlp.tools.ml.naivebayes that implement MaxentModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `NaiveBayesModel` Class implementing the multinomial Naive Bayes classifier model.

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

    Classes in opennlp.tools.ml.perceptron that implement MaxentModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `PerceptronModel`

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

    Constructors in opennlp.tools.namefind with parameters of type MaxentModel
    Constructor and Description
    `TokenNameFinderModel(String languageCode, MaxentModel nameFinderModel, byte[] generatorDescriptor, Map<String,Object> resources, Map<String,String> manifestInfoEntries)`
    `TokenNameFinderModel(String languageCode, MaxentModel nameFinderModel, int beamSize, byte[] generatorDescriptor, Map<String,Object> resources, Map<String,String> manifestInfoEntries, SequenceCodec<String> seqCodec, TokenNameFinderFactory factory)`
    `TokenNameFinderModel(String languageCode, MaxentModel nameFinderModel, Map<String,Object> resources, Map<String,String> manifestInfoEntries)`

  - ### Uses of MaxentModel in opennlp.tools.parser

    Methods in opennlp.tools.parser that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `MaxentModel` | ParserModel.`getAttachModel()`
    `MaxentModel` | ParserModel.`getBuildModel()`
    `MaxentModel` | ParserModel.`getCheckModel()`

    Methods in opennlp.tools.parser with parameters of type MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `ParserModel` | ParserModel.`updateBuildModel(MaxentModel buildModel)`
    `ParserModel` | ParserModel.`updateCheckModel(MaxentModel checkModel)`

    Constructors in opennlp.tools.parser with parameters of type MaxentModel
    Constructor and Description
    `ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, MaxentModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType)`
    `ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, MaxentModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType, Map<String,String> manifestInfoEntries)`
    `ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType type, Map<String,String> manifestInfoEntries)`

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

    Methods in opennlp.tools.postag that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `MaxentModel` | POSModel.`getPosModel()` Deprecated. use getPosSequenceModel instead. This method will be removed soon. Only required for Parser 1.5.x backward compatibility. Newer models don't need this anymore.

    Constructors in opennlp.tools.postag with parameters of type MaxentModel
    Constructor and Description
    `POSModel(String languageCode, MaxentModel posModel, int beamSize, Map<String,String> manifestInfoEntries, POSTaggerFactory posFactory)`
    `POSModel(String languageCode, MaxentModel posModel, Map<String,String> manifestInfoEntries, POSTaggerFactory posFactory)`

  - ### Uses of MaxentModel in opennlp.tools.sentdetect

    Methods in opennlp.tools.sentdetect that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `MaxentModel` | SentenceModel.`getMaxentModel()`

    Constructors in opennlp.tools.sentdetect with parameters of type MaxentModel
    Constructor and Description
    `SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations)`
    `SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations, char[] eosCharacters)` Deprecated. Use `SentenceModel(String, MaxentModel, Map, SentenceDetectorFactory)` instead and pass in a `SentenceDetectorFactory`
    `SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations, char[] eosCharacters, Map<String,String> manifestInfoEntries)` Deprecated. Use `SentenceModel(String, MaxentModel, Map, SentenceDetectorFactory)` instead and pass in a `SentenceDetectorFactory`
    `SentenceModel(String languageCode, MaxentModel sentModel, boolean useTokenEnd, Dictionary abbreviations, Map<String,String> manifestInfoEntries)`
    `SentenceModel(String languageCode, MaxentModel sentModel, Map<String,String> manifestInfoEntries, SentenceDetectorFactory sdFactory)`

  - ### Uses of MaxentModel in opennlp.tools.tokenize

    Methods in opennlp.tools.tokenize that return MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `MaxentModel` | TokenizerModel.`getMaxentModel()`

    Constructors in opennlp.tools.tokenize with parameters of type MaxentModel
    Constructor and Description
    `TokenizerModel(MaxentModel tokenizerModel, Map<String,String> manifestInfoEntries, TokenizerFactory tokenizerFactory)` Initializes the current instance.

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

    Methods in opennlp.tools.util.model with parameters of type MaxentModel
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | ModelUtil.`validateOutcomes(MaxentModel model, String... expectedOutcomes)` Checks if the expected outcomes are all contained as outcomes in the given model.
    `static void` | ModelUtil.`writeModel(MaxentModel model, OutputStream out)` Writes the given model to the given `OutputStream`.

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