Last time I was here my problem was the error:  ** Configuration Error:
file:\apache-ctakes-4.0.0Dev\resources\org\apache\ctakes\lvg
\data\config\lvg.properties
(The filename, directory name, or volume label syntax is incorrect)
** Error: problem of opening/reading config file:
'file:/apache-ctakes-4.0.0Dev/resources/org/apache/ctakes/lv
g/data/config/lvg.properties'.
when running some of the examples, for example
HelloWorldAggregetePipeline.java

Note that I;m running Windows 10.

I traced the error down to LvgCmdApiResourceImpl.java in the line lvg = new
LvgCmdApi("-f:l:b", configFileName);,.  The code for the configFileName is
applicable to UNIX, but unfortunately not for Windows.  So, I changed it to
-
configFileName =
"/apache-ctakes-4.0.0Dev/ctakes/ctakes-lvg-res/target/classes/org/apache/ctakes/lvg/data/config/lvg.properties";
and
lvg = new LvgCmdApi("-f:i:b", configFileName);
which worked to get lvg.properties.

After that fix a new set of multiple errors showed up of the form -
Exception: java.io.FileNotFoundException:
C:\apache-ctakes-4.0.0Dev\ctakes\ctakes-examples\data\misc\stopWords.data
(The system cannot find the path specified)
** Error: problem of opening/reading stop words file:
'C:\apache-ctakes-4.0.0Dev\ctakes\ctakes-examples\data/misc/stopWords.data'.
..

The referenced directory did not have anything for the database and the for
files requested.  After some hacking around I found what appears to be the
needed code and data in the directory defined by the environment
variable CTAKES_SRC_HOME which was set up during the developer install.

I could change the lvg.properties variables to point to the CTAKES_SRC_HOME
directory.  However, it seems like i'm changing too much for a system that
should just work

Is this direction wrong and should I be doing something else?  My suspicion
is that everything would work with Unix, but not with Windows.

Thanks
Don

Reply via email to