}
protected BaseModel buildNameModel(String directoryPath, String modelType, URI typeUri, String i18nLanguageCode) throws IOException, ConfigurationException {
String fname = OpenNLPUtil.OpenNlpModels.valueOf(modelType).filename();
String modelRelativePath = i18nLanguageCode + fname;
BaseModel model = OpenNLPUtil.loadModel(directoryPath, modelRelativePath, modelType);
entityTypes.put(modelType, new Object[] { typeUri, model });
return model;
}