Package opennlp.tools.models

# Class ClassPathModelLoader

java.lang.Object
opennlp.tools.models.ClassPathModelLoader

public class ClassPathModelLoader extends Object
Responsible for loading OpenNLP models from the classpath.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ClassPathModelLoader()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ClassPathModel`
  `load(ClassPathModelEntry entry)`
  Loads a `ClassPathModel` from a `ClassPathModelEntry`

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

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

- ## Constructor Details

  - ### ClassPathModelLoader

    public ClassPathModelLoader()

- ## Method Details

  - ### load

    public ClassPathModel load(ClassPathModelEntry entry) throws IOException
    Loads a `ClassPathModel` from a `ClassPathModelEntry`
    Parameters:
      `entry` - A valid `ClassPathModelEntry`, it must not be `null`.
    Returns:
      A `ClassPathModel` containing the model resources.
    Throws:
      `IOException` - thrown if something went wrong during reading resources from the classpath.