Package org.apache.ctakes.core.resource

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


            queryPrepStmt = conn.prepareStatement(sql);

            String fileResrcName = (String) getConfigParameterValue(PARAM_VALUE_FILE_RESRC);
            if ((fileResrcName != null) && (fileResrcName.trim().length() > 0))
            {
                FileResource fileResrc = (FileResource) getUimaContext().getResourceObject(fileResrcName);
                if (fileResrc != null)
                {
                    loadValueFile(fileResrc.getFile());
                    usePrepStmtVals = true;
                } else
                {
                    throw new Exception("Failed to get " + fileResrcName
                            + " from ResourceManager");
View Full Code Here


  throws ResourceInitializationException
  {
    super.initialize(annotCtx)
   
    //get a side-effect dictionary
    FileResource fResrc = null;
    try {
      fResrc = (FileResource) getContext().getResourceObject("sideEffectTable")
    } catch (Exception e) {
      throw new ResourceInitializationException(e);
    }
    //set a side-effect dictionary
    setMap(fResrc.getFile(), keyDrugMap, sideEffectMap);
   
    try {     
          String[] str;
         
          //get sections to ignore for side effect extraction
View Full Code Here

TOP

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

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.