You need to unpack the cTakes resources zip onto your classpath.
See 
https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+4.0+User+Install+Guide,
 points 4 and 5.  That's got lvg.properties in it, but it needs the
rest of the database unpacked too.  It doesn't work with just the jar or zip,
it needs to be unpacked.

Lots of people use cTakes on Windows (not me, but other people for sure)
so that's not your problem.

HTH,

Ewan.

On Fri, Mar 30, 2018 at 01:08:06AM -0400, Don Flinn wrote:

> 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