Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 64111 invoked from network); 5 Feb 2010 10:54:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 10:54:05 -0000 Received: (qmail 35096 invoked by uid 500); 5 Feb 2010 10:54:05 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 35031 invoked by uid 500); 5 Feb 2010 10:54:03 -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 35021 invoked by uid 99); 5 Feb 2010 10:54:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 10:54:03 +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 (nike.apache.org: domain of aradwen@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-ww0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 10:53:55 +0000 Received: by wwb13 with SMTP id 13so464241wwb.6 for ; Fri, 05 Feb 2010 02:53:35 -0800 (PST) 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; bh=suriHfhTBcQDuyGDgEAB92IxzihS6YCYUs5/+w7LRqk=; b=TMG64655MyoxPaOKILrcNdilQpL6QvAtthq3Zr3Kk1J0Ztn3V8vb5i50J3nGz68nfb 1Y9UNu79i6HCkmpmS4BthtSzIu5+iR+evr7V1zqvk+ImhdP8aVeeJhwxxMzlURnfX2nS J1YsNcNErBGHNRTWBiVXDXN44qJh5Y3x5JktQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IHlQK+xLnf5kAjjx9zP5txgis8livmyKBTNelJhX4Nr8tpcyltBmi/wIys3EBTYQF8 yHVOyyAUarigmEgjr08Ncx9wiXpkRzGdI11z4Z5eto6YKs3evwiIFDDyIJG4l9nrj1S4 UpJjI0/fw8TE2kI1xHGreByZp75w2gClcTdzI= MIME-Version: 1.0 Received: by 10.216.87.140 with SMTP id y12mr549268wee.4.1265367215121; Fri, 05 Feb 2010 02:53:35 -0800 (PST) Date: Fri, 5 Feb 2010 11:53:35 +0100 Message-ID: Subject: telling the CPM to consider some changes From: Radwen ANIBA To: uima-user Content-Type: multipart/alternative; boundary=0016e6d5667a5e2750047ed84337 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d5667a5e2750047ed84337 Content-Type: text/plain; charset=ISO-8859-1 Hello, I come back with a problem I have to run a CPM programmatically. This is what I did : I am based on the uima default FileSystemCollectionReader descriptor that I call using ResourceSpecifier colReaderSpecifier = UIMAFramework.getXMLParser().parseCollectionReaderDescription(new XMLInputSource("desc/FileSystemCollectionReader.xml")); CollectionReader collectionReader = UIMAFramework.produceCollectionReader(colReaderSpecifier); Then I developed 4 analysis engines that I call like this ((BaseCPMImpl) mCPM).addCasProcessor(ae1); ((BaseCPMImpl) mCPM).addCasProcessor(ae2); ((BaseCPMImpl) mCPM).addCasProcessor(ae3); ((BaseCPMImpl) mCPM).addCasProcessor(ae4); the problem is that I want to give the user the option to tell the collection reader the folder he want to use containing the documents to be analyzed so i used this method after producing the collection reader ConfigurationParameterSettings settings = collectionReader.getMetaData().getConfigurationParameterSettings(); org.apache.uima.resource.metadata.NameValuePair[] valuePairs = settings.getParameterSettings(); for (org.apache.uima.resource.metadata.NameValuePair nvp : valuePairs) { // TODO: customize settings and save changes back using this crappy CPE API if(nvp.getName().matches("InputDirectory"))nvp.setValue("/path/to/test/if/that/work"); } And unfortunately the CPM seems to ignore this change and I think I'm missing something here. How to tell the CPM that I've changed the collection reader's configuration paramater settings ? Thx Rad --0016e6d5667a5e2750047ed84337--