/** * Get the logger. * * @return the logger. */ public ExtendedLogger getLogger() { if (logger == null) { logger = new ExtendedLogger(getContext()); } return logger; }
@Override public void initialize(UimaContext aContext) throws ResourceInitializationException { super.initialize(aContext); output = (String) aContext.getConfigParameterValue(PARAM_OUTPUT); inputView = (String) aContext.getConfigParameterValue(PARAM_INPUT_VIEW); outputView = (String) aContext.getConfigParameterValue(PARAM_OUTPUT_VIEW); }
public void initialize(UimaContext aContext) throws ResourceInitializationException { super.initialize(aContext); Integer tmpInt = (Integer) aContext.getConfigParameterValue(PARAM_MIN_TOK_QTY); if (null != tmpInt) mMinTokQty = tmpInt; Boolean tmpBool = (Boolean) aContext.getConfigParameterValue(PARAM_CHECK_QUALITY); if (tmpBool != null) mCheckQuality = tmpBool; tmpBool = (Boolean) aContext.getConfigParameterValue(PARAM_SKIP_ANSWERS); if (tmpBool != null) mSkipAnswers = tmpBool; tmpBool = (Boolean) aContext.getConfigParameterValue(PARAM_INCLUDE_NOT_BEST); if (tmpBool != null) mIncludeNotBest = tmpBool; tmpBool = (Boolean) aContext.getConfigParameterValue(PARAM_DO_POS_TAGGING); if (tmpBool != null) mDoPOSTagging = tmpBool; // quality checker needs POS tags if (mCheckQuality) mDoPOSTagging = true; logger.info(String.format("DoPOSTagging=%b MinTokQty=%d CheckQuality=%b SkipAnswers=%b IncludeNotBest=%b" , mDoPOSTagging, mMinTokQty, mCheckQuality, mSkipAnswers, mIncludeNotBest)); mClearNLPEngine = new BasicEngine(aContext, mDoPOSTagging); }
@Override public void initialize(UimaContext ctx) throws ResourceInitializationException { super.initialize(ctx); String pp = (String) ctx.getConfigParameterValue("persistence-provider"); if (pp == null) {