context = aContext;
configInit();
try {
LvgCmdApiResource lvgResource = (LvgCmdApiResource) context
.getResourceObject(LVGCMDAPI_RESRC_KEY);
if (lvgResource == null)
throw new AnnotatorInitializationException(new Exception(
"Unable to locate resource with key="
+ LVGCMDAPI_RESRC_KEY + "."));
lvgCmd = lvgResource.getLvg();
if (useCmdCache) {
logger.info("Loading Cmd cache=" + cmdCacheFileLocation);
loadCmdCacheFile(cmdCacheFileLocation);
logger.info("Loaded " + normCacheMap.size() + " entries");
}
if (postLemmas) {
lvgLexItem = lvgResource.getLvgLex();
if (useLemmaCache) {
logger.info("Loading Lemma cache=" + lemmaCacheFileLocation);
loadLemmaCacheFile(lemmaCacheFileLocation);
logger.info("Loaded " + lemmaCacheMap.size() + " entries");
}