opennlp.tools.ml.model

## Class GenericModelReader

- java.lang.Object
- - opennlp.tools.ml.model.AbstractModelReader
  - - opennlp.tools.ml.model.GenericModelReader

-     public class GenericModelReader
      extends AbstractModelReader

- - ### Field Summary

    - ### Fields inherited from class opennlp.tools.ml.model.AbstractModelReader

      `MAX_ENTRIES_PROPERTY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GenericModelReader(DataReader dataReader)`
    `GenericModelReader(File f)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `checkModelType()`
    `AbstractModel` | `constructModel()`

    - ### Methods inherited from class opennlp.tools.ml.model.AbstractModelReader

      `getModel, readDouble, readInt, readUTF`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GenericModelReader

          public GenericModelReader(File f)
                             throws IOException

      Throws:
        `IOException`

    - #### GenericModelReader

          public GenericModelReader(DataReader dataReader)

  - ### Method Detail

    - #### checkModelType

          public void checkModelType()
                              throws IOException

      Specified by:
        `checkModelType` in class `AbstractModelReader`
      Throws:
        `IOException`

    - #### constructModel

          public AbstractModel constructModel()
                                       throws IOException

      Specified by:
        `constructModel` in class `AbstractModelReader`
      Throws:
        `IOException`

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