Package opennlp.tools.models
Class ClassPathModelLoader
java.lang.Object
opennlp.tools.models.ClassPathModelLoader
Responsible for loading OpenNLP models from the classpath.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload
(ClassPathModelEntry entry) Loads aClassPathModel
from aClassPathModelEntry
-
Constructor Details
-
ClassPathModelLoader
public ClassPathModelLoader()
-
-
Method Details
-
load
Loads aClassPathModel
from aClassPathModelEntry
- Parameters:
entry
- A validClassPathModelEntry
, it must not benull
.- Returns:
- A
ClassPathModel
containing the model resources. - Throws:
IOException
- thrown if something went wrong during reading resources from the classpath.
-