Hello,
The cTAKES User Install is mostly sufficient for my lab, but I’ve found that I 
need to modify a few of the modules. I downloaded the cTAKES source and can 
successfully run workflows after updating the source code, but I’m having 
trouble building the modified modules and essentially creating an updated User 
Install of cTAKES from the source code. Can you help me with a few questions?


  *   I’m running IntelliJ IDEA, and I can compile the cTAKES source code with 
build profiles like runPiperGui without problems to run cTAKES programmatically 
or to start a GUI. I can also run essentially the same workflow in the User 
Install version by running the bash helper script ‘runPiperFile.sh’. If I 
wanted to create a modified workflow without the entire source code, could I 
create a jar file of the module I wanted to modify, and then replace that jar 
file in the User Install version, or would I need to compile the entire source 
code for cTAKES?

  *   When I try to create a jar file within IntelliJ IDEA, it asks for the 
main class. Would this be a class I create for the workflow I’m using, or 
something else? For example, could I use 
org.apache.ctakes.examples.pipeline.HelloWorldPiperRunner as a template to 
build a customized main class that would run programmatically, or should I 
build a jar file for the modified module without a main class and then replace 
that in the lib/ folder of the User Install version of cTAKES?

  *   I can create a jar file of a module within IntelliJ IDEA and then replace 
the modified jar file in the User Install version (for example, modifying 
ctakes-dictionary-lookup-fast-4.0.0.1.jar and replacing it in the lib/ folder), 
but when I try to run cTAKES, I receive the error:

The feature org.apache.ctakes.typesystem.type.textspan.List:items is declared 
twice, with incompatible multipleReferencesAllowed specifications

I haven’t made any modifications to how the type system is called, only in how 
a custom dictionary is accessed. Do you have any idea what could be causing 
this error?

Thanks!
John Caskey

Reply via email to