Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Currently the OpenNLP service provides only Methods to load models following the default naming conventions of OpenNLP. (e.g. getSentenceModel(String langauge) would try to load the model with the name "
{language}-sent.bin").
This suggests to add an additional Method that allows to load any type of model from any file available via the DataFileProvider framework
<T> T getModel(Class<T> modelType, String modelName, Map<String,String> properties)