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 aClassPathModelfrom aClassPathModelEntry
-
Constructor Details
-
ClassPathModelLoader
public ClassPathModelLoader()
-
-
Method Details
-
load
Loads aClassPathModelfrom aClassPathModelEntry- Parameters:
entry- A validClassPathModelEntry, it must not benull.- Returns:
- A
ClassPathModelcontaining the model resources. - Throws:
IOException- thrown if something went wrong during reading resources from the classpath.
-