On 3/2/07, Michael Baessler <[EMAIL PROTECTED]> wrote:
Adam Lally wrote:
> You can specify both a custom FlowController AND a <fixedFlow> (or
> <capabilityLanguageFlow>) element in your descriptor.  Your
> FlowController will be called but it can access all of the
> AnalysisEngineMetdata from the aggregate descriptor, including the
> fixedFlow and capabilityLanguageFlow sections.

But how can I specify a order for my custom flow? Is this also possible
or do I have to use configuration parameter settings?



Like this:

<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier";>
<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
<primitive>false</primitive>

<delegateAnalysisEngineSpecifiers>
 <delegateAnalysisEngine key="a1">
   <import location="Annotator1.xml"/>
 </delegateAnalysisEngine>
 <delegateAnalysisEngine key="a2">
   <import location="Annotator2.xml"/>
 </delegateAnalysisEngine>
</delegateAnalysisEngineSpecifiers>
<flowController key="MyFlowController">
 <import location="MyFlowController.xml"/>
</flowController>

<analysisEngineMetaData>
<name>Aggregate with custom flow controller</name>
<version>1.0</version>
<vendor>The Apache Software Foundation</vendor>

<flowConstraints>
 <fixedFlow>
   <node>a1</node>
   <node>a2</node>
 </fixedFlow>
</flowConstraints>

</analysisEngineMetaData>
</analysisEngineDescription>


Your custom flow controller in its intialization can query the
<flowContraints> and find out that the sequence is supposed to be a1,
a2; and it can act accordingly.

-Adam

Reply via email to