Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 63238 invoked from network); 21 Aug 2009 09:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Aug 2009 09:40:05 -0000 Received: (qmail 6988 invoked by uid 500); 21 Aug 2009 09:40:27 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 6930 invoked by uid 500); 21 Aug 2009 09:40:27 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 6920 invoked by uid 99); 21 Aug 2009 09:40:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 09:40:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fabio.mancinelli@gmail.com designates 209.85.220.224 as permitted sender) Received: from [209.85.220.224] (HELO mail-fx0-f224.google.com) (209.85.220.224) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 09:40:18 +0000 Received: by fxm24 with SMTP id 24so336541fxm.12 for ; Fri, 21 Aug 2009 02:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=0t9y3CQzXlJVDpMaGMyWt00fVhH9SooditTy1FRXN2U=; b=JmpQyY3bkiBonT9RGC4BouwUHogbdV2IkBQ6T16Dcp+/Z8nsB5kZD0kpnUnVO1NVVz l8gfFf6kRXdLirsXfPlXgwvhIlHrI66gWA8WcWQdATYD7lE8MLe5ilMZLF1c3Vs+DB9X /PomBhnXdjvwgVcX1qRritRtIWV1vWdXjUaIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=BWS93dIJbiXHCk2zp7jwFZ+EqZAQfmaHl2AKGO9g7DeBlTWOEsYLv/qsFl7zwtNlMk g7LeD6M2weUNds0Dt96pUb+/UPRkveh6kFWL05XyQCbAi3MNoWctlZgJS1hVti0zAL8V GYGG6Pr7AgACpAU3ZbqEBJhYcEtoORJlP7m9U= MIME-Version: 1.0 Received: by 10.223.14.215 with SMTP id h23mr170113faa.59.1250847598378; Fri, 21 Aug 2009 02:39:58 -0700 (PDT) Date: Fri, 21 Aug 2009 11:39:58 +0200 Message-ID: <6dfceae40908210239t1a8ecb4fxe9879c2b0725b619@mail.gmail.com> Subject: How to configure aggregate analysis engines in a programmatically created CPE? From: Fabio Mancinelli To: uima-user Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi everybody, I am building a CPE programmatically by using an aggregate analysis engine: CpeDescription cpeDesc = CpeDescriptorFactory.produceDescriptor(); /* Setup the collection reader */ ... /* Setup analysis engine */ URL analysisEngineUrl = ClassLoader.getSystemResource("AggregateAnalysisEngine.xml"); CpeCasProcessor analysisEngine = CpeDescriptorFactory.produceCasProcessor("Aggregate"); analysisEngine.setDescriptor(analysisEngineUrl.toString()); cpeDesc.addCasProcessor(analysisEngine); The problem I am facing is that I don't know how to configure the analysis engines contained in the aggregate ones. With simple analysis engines I could do: CasProcessorConfigurationParameterSettings analysisEngineSettings = CpeDescriptorFactory.produceCasProcessorConfigurationParameterSettings(); analysisEngineSettings.setParameterValue("param", "value"); analysisEngine.setConfigurationParameterSettings(analysisEngineSettings); But I cannot find any way to configure analysis engine inside an aggregate using this API. Any hint? Thanks, Fabio