Before I dig into the error and all enigmas uima, how are you building the jar? 
 Also, what do you need from ctakes?  If you do not need the higher functions 
for relations, temporal information, coreferences ... or the sideline items 
like smoking status, drug-ner, ytex (a big one) ... then you can probably 
create a jar that is about half that size just by getting rid of their 
libraries and dependencies.

Sean

-----Original Message-----
From: Erin Gustafson [mailto:erin.gustaf...@northwestern.edu] 
Sent: Thursday, June 08, 2017 11:33 AM
To: dev@ctakes.apache.org
Subject: RE: Pipeline executable

Within org.apache.ctakes.typesystem itself there are no classes, but in 
org.apache.ctakes.typesystem.type.textspan I do see Segment.class.

The jar is indeed huge (1.14 GB). Open to any suggestions for the most 
efficient way to go about this!

Erin


-----Original Message-----
From: Finan, Sean [mailto:sean.fi...@childrens.harvard.edu] 
Sent: Thursday, June 08, 2017 10:24 AM
To: dev@ctakes.apache.org
Subject: RE: Pipeline executable

Hi Erin,

Do you have any classes in ctakes-typesystem (org.apache.ctakes.type.system)?  
It could be that jcasgen needs to be run.

Just out of curiosity, how huge is your jar file?  You may be able to decrease 
the size ...

Sean

-----Original Message-----
From: Erin Gustafson [mailto:erin.gustaf...@northwestern.edu] 
Sent: Thursday, June 08, 2017 11:16 AM
To: dev@ctakes.apache.org
Subject: Pipeline executable

Hi all,

I have a project that contains a series of classes to build cTAKES pipelines. 
I've been successfully running the pipelines myself within an IDE, but would 
like to be able to provide collaborators with an executable jar file to run our 
pipeline.

So far, I've managed to build a jar that will start running the pipeline from 
the command line. It successfully initializes the annotators but throws an 
exception when processing begins:

Exception in thread "main" java.lang.IllegalStateException: 
org.apache.uima.resource.ResourceInitializationException: Undefined type 
"org.apache.ctakes.typesystem.type.textspan.Segment" in type priority list. 
(Descriptor: <unknown>)

Any thoughts about how to resolve this error? Let me know if I can provide any 
more information..

Thanks,
Erin

Reply via email to