You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ctakes.apache.org by Stamatis Rapanakis <st...@gmail.com> on 2013/09/06 16:43:46 UTC

Running cTAKES examples

  Hello to everyone. I have downloaded the latest version of cTAKES (
https://svn.apache.org/repos/asf/ctakes/trunk/) and installed it in Eclipse
according to the instructions provided in the *cTAKES 3.0 Developer Install
Guide* (
https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+3.0+Developer+Install+Guide
).

  I tried to run the examples provided in the cTAKES 3.0 - Core (
https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+3.0+-+Core),
without success.

  1. The SentenceDetector--train_ a_ new_model launch does not do anything
since the following lines are commented out in SentenceDetector.java:


// GISModel *mod* = SentenceDetectorME.train(inFile, *iters*, cut, scanner);

...

// ssgmw.persist();

  2. In order to use OpenNLP directly and use the class *
SentenceDetectorME.java* provided in the second example, I should also
download OpenNLP. Since the SentenceDetector.java class is not
working, it seems that currently is it my only option.

3. In order to run the sentence detector and tokenizer, in the third
example, I should type in the command line:

java -cp <classpath> org.apache.uima.tools.cpm.CpmFrame

and I guess that a window (gui) will open.

I found the uimaj-tools-2.4.0.jar in my maven repository
.m2\repository\org\apache\uima\uimaj-tools\2.4.0.

Shall I type:

 java -cp /.../*uimaj-tools-2.4.0.jar* org.apache.uima.tools.cpm.CpmFrame

I get the following exception:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/apache/uima/collection/metadata/CpeDescriptorException
        at org.apache.uima.tools.cpm.CpmFrame.<init>(CpmFrame.java:94)
        at org.apache.uima.tools.cpm.CpmFrame.initGUI(CpmFrame.java:178)



        Thank you in advance.