Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 70321 invoked from network); 1 Feb 2010 15:06:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 15:06:46 -0000 Received: (qmail 48151 invoked by uid 500); 1 Feb 2010 15:06:46 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 48111 invoked by uid 500); 1 Feb 2010 15:06:46 -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 48101 invoked by uid 99); 1 Feb 2010 15:06:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 15:06:46 +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 msa@schor.com designates 64.5.52.9 as permitted sender) Received: from [64.5.52.9] (HELO gateway06.websitewelcome.com) (64.5.52.9) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 01 Feb 2010 15:06:36 +0000 Received: (qmail 6570 invoked from network); 1 Feb 2010 15:07:02 -0000 Received: from gator74.hostgator.com (67.18.27.130) by gateway06.websitewelcome.com with SMTP; 1 Feb 2010 15:07:02 -0000 Received: from yktgi01e0-s5.watson.ibm.com ([129.34.20.19]:10833 helo=[9.2.35.72]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Nbxqw-0004uM-R7 for uima-user@incubator.apache.org; Mon, 01 Feb 2010 09:06:14 -0600 Message-ID: <4B66EDE2.7030006@schor.com> Date: Mon, 01 Feb 2010 10:06:10 -0500 From: Marshall Schor User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: AE parameters don't change References: <4B63290B.4020606@schor.com> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-Virus-Checked: Checked by ClamAV on apache.org Radwen ANIBA wrote: > 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 ? > See the example code in the examples, under org.apache.uima.examples.cpe.SimpleRunCPM, for an example of setting up a CPM to run after individually instantiating some components. HTH. -Marshall > 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 >>>> >>>> >>>> >> > >