I am attempting to run cTAKES from an executable UberJar. While the fast pipeline seems to run correctly (in terms of producing an output), when stepping through the LvgAnnotator related steps, cTAKES produces the below error.
26 Sep 2017 22:47:01 INFO LvgAnnotator - URL for lvg.properties =file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties 26 Sep 2017 22:47:01 INFO SentenceDetector - Sentence detector model file: org/apache/ctakes/core/sentdetect/sd-med-model.zip 26 Sep 2017 22:47:01 INFO TokenizerAnnotatorPTB - Initializing org.apache.ctakes.core.ae.TokenizerAnnotatorPTB 26 Sep 2017 22:47:01 INFO LvgCmdApiResourceImpl - Loading NLM Norm and Lvg with config file = jar:file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties 26 Sep 2017 22:47:01 INFO LvgCmdApiResourceImpl - config file absolute path = /home/mike/jar:file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties 26 Sep 2017 22:47:01 INFO LvgCmdApiResourceImpl - cwd = /home/mike 26 Sep 2017 22:47:01 INFO LvgCmdApiResourceImpl - cd jar:file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/ ** Configuration Error: jar:file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties (No such file or directory) ** Error: problem of opening/reading config file: 'jar:file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties'. Use -x option to specify the config file path. ** Configuration Error: jar:file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties (No such file or directory) ** Error: problem of opening/reading config file: 'jar:file:/home/mike/ctakes-assembly-4.0.jar!/org/apache/ctakes/lvg/data/config/lvg.properties'. Use -x option to specify the config file path. Would taking the additional cTAKES resources out of the UberJar resolve this issue? And if so, can I use the lvg.properties file to set where these resources should be? Note, as mentioned before, this error does not cause cTAKES to crash; I am just worried it may be impacting the output. As well, I have implemented the patch outlined at https://issues.apache.org/jira/browse/CTAKES-445 Regards, Mike -- [image: MetiStream Logo - 500] Mike Trepanier| Big Data Engineer | MetiStream, Inc. | [email protected] | 845 - 270 - 3129 (m) | www.metistream.com
