Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 4159 invoked from network); 1 Feb 2010 12:38:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 12:38:13 -0000 Received: (qmail 30277 invoked by uid 500); 1 Feb 2010 12:38:13 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 30247 invoked by uid 500); 1 Feb 2010 12:38:13 -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 30172 invoked by uid 99); 1 Feb 2010 12:38:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 12:38:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aradwen@gmail.com designates 209.85.219.212 as permitted sender) Received: from [209.85.219.212] (HELO mail-ew0-f212.google.com) (209.85.219.212) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 12:38:06 +0000 Received: by ewy4 with SMTP id 4so192673ewy.27 for ; Mon, 01 Feb 2010 04:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=21gmxkg2MYWfUI6KumIG5JI3lujdK7gQ/5hOYJH4zHw=; b=TzL8SQpxYBnAIdwXholWBlXrBH+g6qre/SHTyE2g47hGg82eF+XFeX3DXGwKZM6n6K hVMrnxkZmctgu763iEZuHH2H+ucLI4qE7vXWxg08TJBnSd6vSwvglsVWCGU5Ub0EJsba OBi95Dz5tecEtUqxGCCt5Tmqvpiw74BLU4ykE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XC1jv4nUyrzQiFH5urW4Ndhc6hKuGG/3Fzv3ErTEGYHuoYkBMQuWc0ZgsAEyrwI3bH fMwz/RFnScsyuuYBVaGTgAajxr2N/9AfoDnxoA6QXtdttvq1zORxXnnmffhy5LbFIIXA 15e7wID/3QsUamA+RD+kjaPisNpuPGk6B+YLo= MIME-Version: 1.0 Received: by 10.216.88.6 with SMTP id z6mr2689897wee.52.1265027863696; Mon, 01 Feb 2010 04:37:43 -0800 (PST) In-Reply-To: References: <4B63290B.4020606@schor.com> Date: Mon, 1 Feb 2010 13:37:43 +0100 Message-ID: Subject: Re: AE parameters don't change From: Radwen ANIBA To: uima-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e6d9746e72558d047e894025 --0016e6d9746e72558d047e894025 Content-Type: text/plain; charset=ISO-8859-1 Well I tried again but still have the same bug. After changing AE parameters programatically how to tell the CPE (before or when calling it) to look if the AE changed or not ? Radwen 2010/1/30 Radwen ANIBA > I simply used reconfigure for the AE, i thought CPE will see the latest > modification in the descriptor > > Am I wrong ? > > 2010/1/29 Marshall Schor > > >> >> Radwen ANIBA wrote: >> > Hi >> > >> > I'm trying to change a parameter in an AE and then to call the CPE that >> uses >> > this AE but the changes are not made despite the fact that I don't have >> > errors. >> >> How did you indicate to the CPE (Collection Processing Engine) that it >> should use this configured Analysis Engine? >> -Marshall >> > Here is the part of code I'm using >> > >> > ResourceSpecifier aeSpecifier; >> > try { >> > aeSpecifier = >> > UIMAFramework.getXMLParser().parseResourceSpecifier(new >> > XMLInputSource("desc/TestSeePredAED.xml")); >> > AnalysisEngine ae = >> > UIMAFramework.produceAnalysisEngine(aeSpecifier); >> > >> > ConfigurationParameterSettings aesettings = >> > ae.getMetaData().getConfigurationParameterSettings(); >> > >> > NameValuePair[] valuePairs2 = >> > aesettings.getParameterSettings(); >> > >> > for (NameValuePair nvp2 : valuePairs2) { >> > >> > >> > >> > >> if(nvp2.getName().matches("OUTPUTDIR"))nvp2.setValue("/home/radwen/Bureau/Fold"); >> > >> > System.out.format("name='%s'; value='%s'\n", >> > >> > nvp2.getName(), nvp2.getValue()); >> > >> > } >> > >> > ae.reconfigure(); >> > >> > >> > But after calling my CPE programmaticaly just after this code, well the >> > changes seems to be not made. >> > >> > Can you help me figuring this out ? >> > >> > Thx >> > >> > Radwen >> > >> > >> > > --0016e6d9746e72558d047e894025--