You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Arun Tewatia <ar...@orkash.com> on 2012/03/06 07:49:21 UTC

UIMA-AS parallel flow controller

Hello, 

My UIMA Pipeline has 3 intermediate independent Analysis Engines, which I want to run in parallel. 
So I am looking at the possibilities to do this, and have a few queries. 


    1. Can I achieve this by just using <flowController> element instead of <flowConstraints> If yes will I have to modify the AdvancedFixedFlowController or will it work as available 
    2. Do I need to use UIMA's user defined FlowController 

Currently I am trying to import AdvancedFixedFlowController in <flowController> element and using comma separated array of strings as follows to manage parallel flow. 

<nameValuePair> 
<name>Flow</name> 
<value> 
<array> 
<string>OpenNLPSentenceDetector</string> 
<string>OpenNLPTokenizer</string> 
<string>FirstDescriptor,SecondDescriptor,ThirdDescriptor</string> 
<string>FinalDescriptor</string> 
</array> 
</value> 
</nameValuePair> 

Here FirstDescriptor, SecondDescriptor & ThirdDescriptor are independent of each other and then finally FinalDescriptor is dependent on all three. Also I tried running these three on different queues as remoteAnalysisEngine . 

But I am facing errors in AdvancedFixedFlowController while running this configuration. Am I doing this right ? 

Thanks 
Arun Tewatia 

Re: UIMA-AS parallel flow controller

Posted by Eddie Epstein <ea...@gmail.com>.
The AdvancedFixedFlowController should work, and the Flow
specification below looks ok.
To actually run delegates in parallel, the aggregate must be deployed
as a UIMA-AS async
aggregate, and the delegates to run in parallel have to be remote.
See http://uima.apache.org/d/uima-as-2.3.1/uima_async_scaleout.html#ugr.async.ov.concepts.parallelFlows

Eddie

On Tue, Mar 6, 2012 at 1:49 AM, Arun Tewatia <ar...@orkash.com> wrote:
> Hello,
>
> My UIMA Pipeline has 3 intermediate independent Analysis Engines, which I want to run in parallel.
> So I am looking at the possibilities to do this, and have a few queries.
>
>
>    1. Can I achieve this by just using <flowController> element instead of <flowConstraints> If yes will I have to modify the AdvancedFixedFlowController or will it work as available
>    2. Do I need to use UIMA's user defined FlowController
>
> Currently I am trying to import AdvancedFixedFlowController in <flowController> element and using comma separated array of strings as follows to manage parallel flow.
>
> <nameValuePair>
> <name>Flow</name>
> <value>
> <array>
> <string>OpenNLPSentenceDetector</string>
> <string>OpenNLPTokenizer</string>
> <string>FirstDescriptor,SecondDescriptor,ThirdDescriptor</string>
> <string>FinalDescriptor</string>
> </array>
> </value>
> </nameValuePair>
>
> Here FirstDescriptor, SecondDescriptor & ThirdDescriptor are independent of each other and then finally FinalDescriptor is dependent on all three. Also I tried running these three on different queues as remoteAnalysisEngine .
>
> But I am facing errors in AdvancedFixedFlowController while running this configuration. Am I doing this right ?
>
> Thanks
> Arun Tewatia