Package org.apache.ctakes.core.resource

Examples of org.apache.ctakes.core.resource.StringIntegerMapResource


        PARAM_SEGMENTS_TO_SKIP, context);

    int freqCutoff = ((Integer) context
        .getConfigParameterValue("FreqCutoff")).intValue();

    StringIntegerMapResource strIntMapResrc = (StringIntegerMapResource) context
        .getResourceObject(HYPH_FREQ_TABLE_RESRC_KEY);
    if (strIntMapResrc == null) {
      logger.warn("Unable to locate resource with key="
          + HYPH_FREQ_TABLE_RESRC_KEY
          + ".  Proceeding without hyphenation support.");
      tokenizer = new Tokenizer();
    } else {
      logger.info("Hyphen dictionary: " + strIntMapResrc.toString());
      Map<String, Integer> hyphMap = strIntMapResrc.getMap();
      tokenizer = new Tokenizer(hyphMap, freqCutoff);
    }

  }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.resource.StringIntegerMapResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.