model file problen in opennlp uima wrapper

2009-04-16 Thread Tobias Wunner
Hello, I was trying to run the OpenNLP UIMA wrapper OpenNLPAggregate.xml from the UIMA examples (org.apache.uima.examples.opennlp.annotators) and load it in the CAS Visual Debugger. I got the following Java exception: Exception in thread AWT-EventQueue-0

Re: model file problen in opennlp uima wrapper

2009-04-16 Thread Burn Lewis
That probably means the OpenNLP library was compiler with a newer version of Java. Try switching to a higher version number. (The message usually indicates the version number, e.g. 6 for Java 1.6) Burn.

running UIMA annotators from third party program

2009-04-16 Thread Zoltán Szászi
Hi! Concrete situation: I have an UIMA Annotator; developed by me and works fine with UIMA.But if I like running this annotator from a third party software (this program gets only the descriptor xml file and an input directory, self the annotator has own, special output), always I get annotator

Running CPE with multi-threading

2009-04-16 Thread Duan, Nick
I have a set of annotators bundled as an aggregate AE and configured in a CPE. It runs fine with a single thread, but deadlocked with 2 or more threads. The AE was developed without any consideration of thread-safety. I am trying to find out the possible causes of the deadlocks, and hope to get

Re: running UIMA annotators from third party program

2009-04-16 Thread Burn Lewis
Perhaps just before you call produceAnalysisEngine you could print the value of the java.class.path property, to verify that the UIMA classes have been specified via -cp or whatever. Burn.

Re: running UIMA annotators from third party program

2009-04-16 Thread Thilo Goetz
Zoltán Szászi wrote: Hi! Concrete situation: I have an UIMA Annotator; developed by me and works fine with UIMA.But if I like running this annotator from a third party software (this program gets only the descriptor xml file and an input directory, self the annotator has own, special

Re: model file problen in opennlp uima wrapper

2009-04-16 Thread Philip Ogren
It may be worth pointing out that there is a very nice set of uima wrappers for OpenNLP available from their sourceforge cvs repository. See http://opennlp.cvs.sourceforge.net/opennlp/. While this is still a work in progress - it is *much* nicer than the example wrappers that ship with UIMA.

Re: Running CPE with multi-threading

2009-04-16 Thread Adam Lally
Hi, On Thu, Apr 16, 2009 at 11:22 AM, Duan, Nick nick.d...@mantech.com wrote: I have a set of annotators bundled as an aggregate AE and configured in a CPE. It runs fine with a single thread, but deadlocked with 2 or more threads.  The AE was developed without any consideration of

RE: Running CPE with multi-threading

2009-04-16 Thread Duan, Nick
Thanks Adam for the detailed response! The document that stated the number processing pipelines vs. the CAS pool size is on page 44 of the UIMA References (version 2.2.2). Has anyone done any empirical test on what would be the best ratio of # threads to CAS pool size? Or any consideration

Re: Running CPE with multi-threading

2009-04-16 Thread Burn Lewis
Yes, this note is certainly wrong! *The number of Processing Pipelines should be equal to or greater than CAS Pool size. * The tutorial gets it right. My understanding is that there is a separate CasConsumer thread and only the portion of the pipeline before the first CasConsumer runs in the

Re: Running CPE with multi-threading

2009-04-16 Thread Adam Lally
On Thu, Apr 16, 2009 at 6:39 PM, Burn Lewis burnle...@gmail.com wrote: My understanding is that there is a separate CasConsumer thread and only the portion of the pipeline before the first CasConsumer runs in the pipeline thread(s).  The first CasConsumer and all following CasProcessors run in