+1.
The models are generally read-only in the runtime prod environment- so there 
shouldn’t be any reason why it can’t be made to be thread-safe.
LVG[1] was definitely one I remember that was problematic...
[1] https://issues.apache.org/jira/browse/CTAKES-151
--Pei

From: vijay garla [mailto:[email protected]]
Sent: Tuesday, June 03, 2014 3:14 PM
To: [email protected]
Subject: Re: Regarding using cTakes production environment..

ytex has a web client for the semantic similarity service, but not for running 
ctakes pipelines.

I believe that the only issue with running ctakes (or any UIMA pipeline) in a 
web server is thread safety - not all AnnotationEngines are thread safe (in 
fact I don't know which ones are or aren't).  What is *not* thread safe is LVG, 
which is not needed for many use cases.

What really needs to be thread safe are all the models - they take up a lot of 
memory and instantiating one per thread would be very costly.

Best,

VJ



On Mon, Jun 2, 2014 at 2:39 PM, Chen, Pei 
<[email protected]<mailto:[email protected]>> wrote:
Prasanna,
If you were just looking to ‘package’ up your binaries, you may want to take a 
look at the ctakes-distribution [1] module.
Essentially, if you do a mvn package, it will compile all of your modules and 
package them up nicely into a single zip.

I am not completely sure of the architecture when you mean “by calling this 
from a different web application which is written in a different language.”  
But I presume you would need to wrap cTAKES inside a service call of some sort. 
 I *think* ytex has a web client [2], or you can also take a look at the simple 
web app (war) [3] in sandbox.

[1] http://svn.apache.org/repos/asf/ctakes/trunk/ctakes-distribution/
[2] http://svn.apache.org/repos/asf/ctakes/trunk/ctakes-ytex-web/
[3] http://svn.apache.org/repos/asf/ctakes/sandbox/ctakes-web-client/

From: Prasanna Bala 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Monday, June 02, 2014 6:27 AM
To: [email protected]<mailto:[email protected]>
Subject: Regarding using cTakes production environment..

Hi,

I have used cTakes developer version from eclipse. I have done some 
modifications to the code. I want to now compile them into single jar file and 
using them for production version. I am using maven for bundling them into 
single jar and then use them. Can anyone tell me if they have done this ? Are 
can you suggest some ideas for using cTakes in a production environment. I want 
to call this from different web application which is written different language.

Regards,
Prasanna

Reply via email to