[
https://issues.apache.org/jira/browse/CTAKES-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15876445#comment-15876445
]
James Joseph Masanz commented on CTAKES-418:
--------------------------------------------
Looks like the problem is that in createAnnotatorDescription in
org.apache.ctakes.lvg.ae.LvgAnnotator.java
a copy of the file lvg.properties is being made into /tmp, but the config files
are not being copied.
That was done in r1590234 for CTAKES-297
I prototyped and think we need to:
copy config, misc, rules, and Unicode subdirs of
src\main\resources\org\apache\ctakes\lvg\data\ into /tmp/data
which will put lvg.properties into /tmp/data/config
and no longer copy lvg.properties into /tmp itself.
It’s less than 200K so I think we should be OK. I’ll create a Jira ticket and
give that a try.
To prototype, I manually copied the subdirs under /tmp
and changed line 567 of LvgAnnotator.java to this:
File lvgFile = new File("/tmp/data/config/lvg.properties");
Sean Finan pointed out LvgSingleton is doing similar copy of lvg.properties
I'll update both places
> Exception: java.io.FileNotFoundException: ctakes-temporal/data/misc/{various}
> -----------------------------------------------------------------------------
>
> Key: CTAKES-418
> URL: https://issues.apache.org/jira/browse/CTAKES-418
> Project: cTAKES
> Issue Type: Bug
> Components: ctakes-lvg
> Affects Versions: 3.2.3
> Reporter: James Joseph Masanz
> Assignee: James Joseph Masanz
> Fix For: 3.2.3
>
> Attachments: Jenkins build log.txt
>
>
> Build log shows errors such as
> Exception: java.io.FileNotFoundException:
> /home/jenkins/jenkins-slave/workspace/ctakes-trunk-compiletest/ctakes-temporal/data/misc/stopWords.data
> (No such file or directory)
> ** Error: problem of opening/reading stop words file:
> '/home/jenkins/jenkins-slave/workspace/ctakes-trunk-compiletest/ctakes-temporal/data/misc/stopWords.data'.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)