You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by "Geise, Brandon D." <bd...@geisinger.edu> on 2015/09/21 15:58:57 UTC

Packaging Ctakes Application

Hi All,

I've created a test application using Ctakes and now would like to package into jar.  What I've tried is creating a single jar with all resources in the JAR and it starts loading the models as expected for the TokenizerAnnotatorPTB (default from cTakes) but close to the end of the loading the models I get a URI is not hierarchical error.

Loading configuration.
Loading feature templates.
Loading lexica.
Loading model:
................................
Loading model:
.............................
URI is not hierarchical
java.lang.IllegalArgumentException: URI is not hierarchical


If I run the same from Eclipse it looks like
Loading configuration.
Loading feature templates.
Loading lexica.
Loading model:
................................
Loading model:
.............................
21 Sep 2015 09:47:19  INFO AbstractJCasTermAnnotator - Using dictionary lookup window type: org.apache.ctakes.typesystem.type.textspan.Sentence

Can someone offer some suggestions on the best way to package a maven application that uses cTakes?  Based on another thread I have even tried to extract the resources folder and specify in the classpath but I'm still receiving the same error.

Thanks,
Brandon


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.