ctakes-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geise, Brandon D." <bdge...@geisinger.edu>
Subject RE: LVG Annotator
Date Thu, 03 Mar 2016 20:27:08 GMT
Hi Lewis,

Yes, I’m using trunk, although looks like I’m out of sync across all the ctakes modules.
 I’ve updated all of CTakes to whatever the latest in trunk is.  Ran the process again and
it works fine if I copy the lvg data folder to my CWD.  I’d agree that changing this would
be beneficial if we can.

Did you have something in mind?


From: Lewis John Mcgibbney [mailto:lewis.mcgibbney@gmail.com]
Sent: Thursday, March 03, 2016 11:49 AM
To: user@ctakes.apache.org
Subject: Re: LVG Annotator

Hi Brandon,
Which version are you using? Trunk?
This issue presented a problem for me (and a number of others a while ago).
It was 'addressed' in CTAKES-385 [0]. The lingering issue here however (which needs to be
addressed) is that in trunk we now have instances of the following

+  public static AnalysisEngineDescription createAnnotatorDescription() throws ResourceInitializationException,
MalformedURLException {
+    InputStream lvgStream = LvgAnnotator.class.getClassLoader().getResourceAsStream("org/apache/ctakes/lvg/data/config/lvg.properties");
+    File lvgFile = new File("/tmp/lvg.properties");
+    try {
+      FileUtils.copyInputStreamToFile(lvgStream, lvgFile);
+    } catch (IOException e) {
+      throw new RuntimeException("Error copying temporary InpuStream org/apache/ctakes/lvg/data/config/lvg.properties
to /tmp/lvg.properties.", e);
As you can see, the lvg.properties should reside in the jar at path org/apache/ctakes/lvg/data/config/lvg.properties,
this is then copied to /tmp (not ideal and not portable across OS).
If we can suggest and agree on what the slution should be then I am happy to provide another
patch for this.

[0] https://issues.apache.org/jira/browse/CTAKES-385

On Thu, Mar 3, 2016 at 7:47 AM, <user-digest-help@ctakes.apache.org<mailto:user-digest-help@ctakes.apache.org>>

---------- Forwarded message ----------
From: "Geise, Brandon D." <bdgeise@geisinger.edu<mailto:bdgeise@geisinger.edu>>
To: "user@ctakes.apache.org<mailto:user@ctakes.apache.org>" <user@ctakes.apache.org<mailto:user@ctakes.apache.org>>
Date: Thu, 3 Mar 2016 15:47:21 +0000
Subject: LVG Annotator

I’m a little stumped at this point and hoping maybe someone can point me in the right direction.
 I’ve built a jar using maven and packaged all the necessary ctakes libraries.  The issue
I’m having is when I go to run the jar the LVG Annotator is saying the LVG config file is
at C:\tmp\lvg.properties.  I did place the resources folder in the classpath and have org\apache\ctakes\lvg\data\config\lvg.properties
copied there.

Any suggestions on what I could be missing?

IMPORTANT WARNING: The information in this message (and the documents attached to it, if any)
is confidential and may be legally privileged. It is intended solely for the addressee. Access
to this message by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken, or omitted to be taken, in reliance
on it is prohibited and may be unlawful. If you have received this message in error, please
delete all electronic copies of this message (and the documents attached to it, if any), destroy
any hard copies you may have created and notify me immediately by replying to this email.
Thank you.

Geisinger Health System utilizes an encryption process to safeguard Protected Health Information
and other confidential data contained in external e-mail messages. If email is encrypted,
the recipient will receive an e-mail instructing them to sign on to the Geisinger Health System
Secure E-mail Message Center to retrieve the encrypted e-mail.
View raw message