}
}
try {
if(config.isProcessedLangage(language)){
for (String defaultModelType : config.getDefaultModelTypes()) {
TokenNameFinderModel nameFinderModel = openNLP.getNameModel(defaultModelType, language);
if(nameFinderModel == null){
log.info("No NER Model for {} and language {} available!",defaultModelType,language);
} else {
findNamedEntities(ci, at, text, language, nameFinderModel);
}
}
} //else do not use default models for languages other than the processed one
//process for additional models
for(String additionalModel : config.getSpecificNerModles(language)){
TokenNameFinderModel nameFinderModel;
try {
nameFinderModel = openNLP.getModel(TokenNameFinderModel.class,
additionalModel, null);
findNamedEntities(ci, at, text, language, nameFinderModel);
} catch (IOException e) {