Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 13773 invoked from network); 24 Oct 2007 12:53:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 12:53:22 -0000 Received: (qmail 36874 invoked by uid 500); 24 Oct 2007 12:53:10 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 36858 invoked by uid 500); 24 Oct 2007 12:53:09 -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 36849 invoked by uid 99); 24 Oct 2007 12:53:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 05:53:09 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [132.230.2.213] (HELO mailgateway3.uni-freiburg.de) (132.230.2.213) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 12:53:12 +0000 Delivery-date: Wed, 24 Oct 2007 14:53:12 +0200 Received: from klinikum.uni-freiburg.de ([132.230.2.96] helo=uni-freiburg.de) port 33156 by mailgateway3.uni-freiburg.de with esmtp (Exim 4.60 #1 built 13-Jul-2006 14:56:20 running on Gentoo) id 1Ikfg4-0007Y4-T9 for uima-user@incubator.apache.org; Wed, 24 Oct 2007 14:49:40 +0200 Received: from [10.4.210.4] (account philipp.daumke@klinikum.uni-freiburg.de [10.4.210.4] verified) by uni-freiburg.de (CommuniGate Pro SMTP 5.0.13) with ESMTPSA id 92234020 for uima-user@incubator.apache.org; Wed, 24 Oct 2007 14:49:40 +0200 Message-ID: <471F3F53.3050808@averbis.de> Date: Wed, 24 Oct 2007 14:49:23 +0200 From: Philipp Daumke User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: "Global" Parameters for a CPE References: <471CEC8F.3010300@averbis.de> <471EEBB3.2060408@gmx.de> <0DBCCB475CDE864F8F6086D69BFC5D9FF0626E@CALLISTO.ntdom.tk.informatik.tu-darmstadt.de> In-Reply-To: <0DBCCB475CDE864F8F6086D69BFC5D9FF0626E@CALLISTO.ntdom.tk.informatik.tu-darmstadt.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Torsten, I had the same idea and currently do it like that. But if you work with millions of documents and you want to initialise (or maybe clean the folder) just at the beginning it's really a hack to write the folder information in millions of CASes. Another idea that I had was whether it's possible to access the CollectionReaderXML from the CasConsumer automatically. Is there something like getCPEComponents().getCollectionReader.getMetaData() which you can call from any CPEComponent? I couldn't find it so far. Thanks for your help Philipp >>> I want to read some files from a certain directory and >>> >> write the results >> >>> back in the same folder (in a subdirectory, to be more >>> >> exactly). (How) >> >>> can I define parameters that are both accessible in a >>> >> CollectionReader >> >>> and in a Cas Consumer? Or do I have to define the folder parameter >>> twice, first in the CollectionReaderXML and second in the >>> >> CasConsumerXML? >> >>> Thanks for your help >>> Philipp >>> >> Excellent question. I tried to figure this out from our >> documentation and couldn't. Anyone? >> > > As a workaround, one could define the parameter in the CollectionReader > and add a document annotation that holds the path. The consumer then > reads the path from the document annotation, so it knows where to put > the results. > > -Torsten > >