ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chen...@apache.org
Subject svn commit: r1636954 - /ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
Date Wed, 05 Nov 2014 20:53:20 GMT
Author: chenpei
Date: Wed Nov  5 20:53:19 2014
New Revision: 1636954

URL: http://svn.apache.org/r1636954
Log:
CTAKES-325 - Add info log output - inital load may take few mins... since it's caching dictionary
into memory.

Modified:
    ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java

Modified: ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java?rev=1636954&r1=1636953&r2=1636954&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
Wed Nov  5 20:53:19 2014
@@ -99,6 +99,8 @@ abstract public class AbstractJCasTermAn
          if ( windowClassName == null || windowClassName.isEmpty() ) {
             windowClassName = DEFAULT_LOOKUP_WINDOW;
          }
+   	  LOGGER.info( "Default - Loading dictionary into memory.  Initial run may take few mins
to load. Please be patient...");
+   	  
          LOGGER.info( "Using dictionary lookup window type: " + windowClassName );
          _lookupWindowType = JCasUtil.getType( windowClassName );
          // optional exclusion POS tags
@@ -130,7 +132,7 @@ abstract public class AbstractJCasTermAn
          _dictionarySpec = DictionaryDescriptorParser.parseDescriptor( descriptorFile, uimaContext
);
       } catch ( ResourceAccessException | AnnotatorContextException multE ) {
          throw new ResourceInitializationException( multE );
-      }
+      }	   
    }
 
 



Mime
View raw message