log.info("Building model with options: ");
String[] optionSettings = kmb.getOptions();
for (int i = 0; i < optionSettings.length; i++) {
log.info(optionSettings[i] + " ");
}
kmb.buildModel(kmb.collectStems(), new StopwordsEnglish());
kmb.saveModel();
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
log.error("\nOptions:\n");