{
String message = String.format("problem accessing resource");
throw new RuntimeException(message, e);
}
AssertionDecoderConfiguration assertionDecoderConfiguration = new AssertionDecoderConfiguration();
logger.info(String.format("scope model file: %s", scopeModelFilePath));
logger.info(String.format("cue model file: %s", cueModelFilePath));
ScopeParser scopeParser = new ScopeParser(scopeModelFilePath,
cueModelFilePath);
assertionDecoderConfiguration.setScopeParser(scopeParser);
logger.info(String.format("pos model file: %s", posModelFilePath));
PartOfSpeechTagger posTagger = new PartOfSpeechTagger(posModelFilePath);
assertionDecoderConfiguration.setPosTagger(posTagger);
Set<String> enabledFeatureIdSet = null;
enabledFeatureIdSet = BatchRunner
.loadEnabledFeaturesFromFile(enabledFeaturesFile);
assertionDecoderConfiguration.setEnabledFeatureIdSet(enabledFeatureIdSet);
JarafeMEDecoder assertionDecoder = null;
assertionDecoder = new JarafeMEDecoder(assertionModelFile);
assertionDecoderConfiguration.setAssertionDecoder(assertionDecoder);
this.assertionDecoderConfiguration = assertionDecoderConfiguration;
}