org.apache.ctakes.lvg.resource
Class LvgCmdApiResourceImpl

java.lang.Object
  extended by org.apache.ctakes.lvg.resource.LvgCmdApiResourceImpl
All Implemented Interfaces:
LvgCmdApiResource, org.apache.uima.resource.SharedResourceObject

public class LvgCmdApiResourceImpl
extends java.lang.Object
implements LvgCmdApiResource, org.apache.uima.resource.SharedResourceObject

Loads NLM Lvg and Norm, reading configuration information from a config (properties) file Since the value of the LVG_DIR property in the lvg properties file must be either a hard coded absolute pathname or the value AUTO_MODE, and we want to support installing this project in a directory of the user's choice, we avoid using a hardcoded pathname and choose to use LVG_DIR=AUTO_MODE in the properties file. AUTO_MODE indicates to lvg to look in the current working directory for its files, so using AUTO_MODE requires this class to change the current working directory temporarily so the lvg files can be found by lvg.

Author:
Mayo Clinic

Constructor Summary
LvgCmdApiResourceImpl()
           
 
Method Summary
 gov.nih.nlm.nls.lvg.Api.LvgCmdApi getLvg()
          An LvgCmdApi takes a term from the input and returns a vector of strings.
 gov.nih.nlm.nls.lvg.Api.LvgLexItemApi getLvgLex()
          The thing to run through Lvg
 void load(org.apache.uima.resource.DataResource dr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LvgCmdApiResourceImpl

public LvgCmdApiResourceImpl()
Method Detail

load

public void load(org.apache.uima.resource.DataResource dr)
          throws org.apache.uima.resource.ResourceInitializationException
Specified by:
load in interface org.apache.uima.resource.SharedResourceObject
Throws:
org.apache.uima.resource.ResourceInitializationException

getLvg

public gov.nih.nlm.nls.lvg.Api.LvgCmdApi getLvg()
An LvgCmdApi takes a term from the input and returns a vector of strings.

Specified by:
getLvg in interface LvgCmdApiResource
See Also:
LvgCmdApiResource.getLvg()

getLvgLex

public gov.nih.nlm.nls.lvg.Api.LvgLexItemApi getLvgLex()
The thing to run through Lvg

Specified by:
getLvgLex in interface LvgCmdApiResource