Package opennlp.tools.models
Class ClassPathModelLoader
java.lang.Object
opennlp.tools.models.ClassPathModelLoader
Responsible for loading OpenNLP models from the classpath via 
entries.
 If models could be loaded successfully, those are provided as model references
 or as instances of the specified ModelType.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionload(ClassPathModelEntry entry) Loads aClassPathModelfrom aClassPathModelEntry
- 
Constructor Details- 
ClassPathModelLoaderpublic ClassPathModelLoader()
 
- 
- 
Method Details- 
loadLoads aClassPathModelfrom aClassPathModelEntry- Parameters:
- entry- A valid- ClassPathModelEntry, it must not be- null. Moreover, it is validated that the- binary dataand- meta-dataare not- null.
- Returns:
- A ClassPathModelcontaining the model resources.
- Throws:
- IOException- Thrown if something went wrong during reading resources from the classpath.
 
 
-