Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B3B519B78 for ; Fri, 1 Apr 2016 16:12:42 +0000 (UTC) Received: (qmail 95623 invoked by uid 500); 1 Apr 2016 16:12:41 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 95573 invoked by uid 500); 1 Apr 2016 16:12:41 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 95560 invoked by uid 99); 1 Apr 2016 16:12:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2016 16:12:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2E6B11A0934 for ; Fri, 1 Apr 2016 16:12:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.fr Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id s2RfiMZf49qA for ; Fri, 1 Apr 2016 16:12:38 +0000 (UTC) Received: from nm4-vm2.bullet.mail.ne1.yahoo.com (nm4-vm2.bullet.mail.ne1.yahoo.com [98.138.90.152]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 0A2465F1C6 for ; Fri, 1 Apr 2016 16:12:37 +0000 (UTC) Received: from [98.138.100.116] by nm4.bullet.mail.ne1.yahoo.com with NNFMP; 01 Apr 2016 16:12:31 -0000 Received: from [98.138.89.192] by tm107.bullet.mail.ne1.yahoo.com with NNFMP; 01 Apr 2016 16:12:31 -0000 Received: from [127.0.0.1] by omp1050.mail.ne1.yahoo.com with NNFMP; 01 Apr 2016 16:12:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 591068.15523.bm@omp1050.mail.ne1.yahoo.com X-YMail-OSG: QBaTg8gVM1kYIwGAc5kz12hPFg156vdWE0CV7o94JvMMSnSO.R63_o7umzyPUAv au29nYzQZkvijNlwSYfQHUYzU_ay1YIYO7WrbpME.LjUgFPXICNvKJiPyo.DHMGQA6lXIQPmCZhy Fbxbcu21Z16n9vxe9NyPXcyjTLdYf2d39hBPP6xmV8LCzASKN84M2Wn91O61KINejrtXdEqWWzb_ gQhZpYIf7x9wGIFZyN3QuBKJ_3ldasSIKIfMzKJmnz1JY7r.Vzr93x9Ir32YogumZ56NxGxCN3W8 sUzVtyyFhdwWFoRGGX8fv2uXgDYUffk_52cogZYSfCzW2wxCQjpbEuluJLzdMgy4vqP0Jy8BfxHC Ud3Z4NcvYK9Uv1dJMCSlArm3a5aydFaUq3LleCpDKZbOd7q1G8Pm4ska4OvnaOHs_eyqFveIHDCZ j.nlSvGiJcM8xCdOHk2P8fzDe1Vmlr.gaxPCfc9GMbrzyVa5xI2v2L3CoqKDP7EebQLn269ypRzp 9RQWTjv26F3hpA6Y- Received: by 98.138.101.174; Fri, 01 Apr 2016 16:12:31 +0000 Date: Fri, 1 Apr 2016 16:12:30 +0000 (UTC) From: Franck Reply-To: Franck To: "user@uima.apache.org" Message-ID: <1607074155.920206.1459527150741.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <1BDB462F-5D11-489A-8DB3-81CA446A37EE@apache.org> References: <1BDB462F-5D11-489A-8DB3-81CA446A37EE@apache.org> Subject: Re: Dynamically set configuration parameters in delegates. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_920205_1510019372.1459527150737" ------=_Part_920205_1510019372.1459527150737 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Richard, thanks for your answer. I thought about it but didn't want to reconfigure t= he 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 c= reate a new annotation with all the parameters I need, change my AEs so tha= t they read the values, and set this annotation before calling process(). Cheers from Darmstadt :)Franck De=C2=A0: Richard Eckart de Castilho =C3=80=C2=A0: user@uima.apache.org=20 Envoy=C3=A9 le : Mercredi 30 mars 2016 15h24 Objet=C2=A0: Re: Dynamically set configuration parameters in delegates. =20 Hi, I would recommend reconfiguring a single AE instance, but rather generating= new (aggregate) engine descriptions as you need them and uimaFIT SimplePip= eline to run them. I believe there is no standard way of reconfiguring components within alrea= dy instantiated aggregates. Best, -- Richard > On 29.03.2016, at 14:56, Franck Valentin wro= te: >=20 > Hi, >=20 > I use UIMA 2.6 and uimaFIT 2.1.0 to create an aggregate AE.=20 > I would like to set specific parameters for each delegate before running= =20 > analyses (i.e. before running process()). > So far I tried to use configuration parameters but without success. If I= =20 > use a simple AE alone then calling=20 > setConfigParameterValue() works but it doesn't when using an aggregate AE= . > I stumbled also on a strange behavior: if the configuration parameter is= =20 > not defined in the engine description but its value is=20 > set by setConfigParameterValue() then its name doesn't appear with=20 > getConfigParameterNames() but its value is correctly retrieved=20 > with getConfigParameterValue()! >=20 > Below is a simple code to test the aggregate (it's in Scala but should be= =20 > easily understandable). ------=_Part_920205_1510019372.1459527150737--