uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franck <franck_valen...@yahoo.fr.INVALID>
Subject Re: Dynamically set configuration parameters in delegates.
Date Fri, 01 Apr 2016 16:12:30 GMT
Hi Richard,
thanks for your answer. I thought about it but didn't want to reconfigure the descriptors
each time before running the pipeline. The parameters I want to set only concern my own AEs,
so I guess the solution would then be to create a new annotation with all the parameters I
need, change my AEs so that they read the values, and set this annotation before calling process().
Cheers from Darmstadt :)Franck

      De : Richard Eckart de Castilho <rec@apache.org>
 À : user@uima.apache.org 
 Envoyé le : Mercredi 30 mars 2016 15h24
 Objet : Re: Dynamically set configuration parameters in delegates.

I would recommend reconfiguring a single AE instance, but rather generating new (aggregate)
engine descriptions as you need them and uimaFIT SimplePipeline to run them.

I believe there is no standard way of reconfiguring components within already instantiated


-- Richard

> On 29.03.2016, at 14:56, Franck Valentin <amail4-franckinsc@yahoo.fr> wrote:
> Hi,
> I use UIMA 2.6 and uimaFIT 2.1.0 to create an aggregate AE. 
> I would like to set specific parameters for each delegate before running 
> analyses (i.e. before running process()).
> So far I tried to use configuration parameters but without success. If I 
> use a simple AE alone then calling 
> setConfigParameterValue() works but it doesn't when using an aggregate AE.
> I stumbled also on a strange behavior: if the configuration parameter is 
> not defined in the engine description but its value is 
> set by setConfigParameterValue() then its name doesn't appear with 
> getConfigParameterNames() but its value is correctly retrieved 
> with getConfigParameterValue()!
> Below is a simple code to test the aggregate (it's in Scala but should be 
> easily understandable).

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message