Reed Villanueva created CTAKES-504:

             Summary: Add visibility into implicitly expected resource paths in 
ctakes-core FileLocator.class
                 Key: CTAKES-504
             Project: cTAKES
          Issue Type: Improvement
          Components: ctakes-core
            Reporter: Reed Villanueva
             Fix For: 4.0.1

 the method _getFileSearchPaths_ makes certain implicit assumptions about where 
to look for resources if environment variable _CTAKES_HOME_ is not set. This 
can cause confusion about where resources should be placed in projects 
attempting to use ctakes library jars, since if they are not in these expected 
locations, the current errors may look like
Exception in thread "main" 06 Apr 2018 00:17:53 ERROR JdbcRareWordDictionary - 
Could not Connect to Dictionary sno_rx_16abTerms
org.apache.uima.resource.ResourceInitializationException: Initialization of 
annotator class 
"" failed. 
(Descriptor: <unknown>){code}
Which does not inform that the problem is related to *where* the resources/ 
folder has been placed.

I propose adding an additional small bit of output text before the method 
returns, of the form:
{code:java} String.format("Obtained search paths for resource %s:", location) 
for (String path : paths) {;


This message was sent by Atlassian JIRA

Reply via email to