public void initialize(UimaContext aContext)
throws ResourceInitializationException {
super.initialize(aContext);
try {
logger.info("Initializing parser...");
parser = new MaxentParserWrapper(FileLocator.locateFile(modelFilename).getAbsolutePath(), usePos);
} catch (FileNotFoundException e) {
e.printStackTrace();
logger.error("Error reading parser model file/directory: " + e.getMessage());
throw new ResourceInitializationException(e);
}