[ 
https://issues.apache.org/jira/browse/CTAKES-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266139#comment-16266139
 ] 

Sean Finan commented on CTAKES-485:
-----------------------------------

The thread safe pipelines can easily be used with piper files and/or the 
PipelineBuilder class, or the AggregatePipelineBuilder.  Yes, descriptor xmls, 
but why punish yourself (uima-as)?
In a piper file, use the command "threads" followed by the number of pipelines 
that you would like to run in parallel:
threads 3

You will also need to use the correct thread safe annotator wrappers.  They 
have been added to modules in packages named .concurrent
Thread safe subPipe (not full pipeline) piper files have been added to modules 
with the prefix "Ts".  Ex: TsChunkerSubPipe.piper
The TsDefaultFastPipeline.piper in ctakes-clinical-pipeline-res is a thread 
safe default clinical pipeline.

> Add Thread safe default clinical pipeline
> -----------------------------------------
>
>                 Key: CTAKES-485
>                 URL: https://issues.apache.org/jira/browse/CTAKES-485
>             Project: cTAKES
>          Issue Type: New Feature
>    Affects Versions: 4.0.1
>            Reporter: Sean Finan
>            Assignee: Sean Finan
>            Priority: Minor
>              Labels: performance
>             Fix For: 4.0.1
>
>
> cTakes is not thread-safe.  This has been well established.  It would be nice 
> if at least the default clinical pipeline could be run with some thread 
> safety.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to