Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C10239739 for ; Fri, 8 Jun 2012 06:57:49 +0000 (UTC) Received: (qmail 53459 invoked by uid 500); 8 Jun 2012 06:57:49 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 52676 invoked by uid 500); 8 Jun 2012 06:57:41 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 52617 invoked by uid 99); 8 Jun 2012 06:57:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 06:57:39 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_HI,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [77.87.224.107] (HELO m3-bln.bund.de) (77.87.224.107) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 06:57:29 +0000 Received: from m3.mfw.bln.ivbb.bund.de (localhost [127.0.0.1]) by m3-bln.bund.de (8.14.3/8.14.3) with ESMTP id q586v9O6021002 for ; Fri, 8 Jun 2012 08:57:09 +0200 (CEST) Received: (from localhost) by m3.mfw.bln.ivbb.bund.de (MSCAN) id 6/m3.mfw.bln.ivbb.bund.de/smtp-gw/mscan; Fri Jun 8 08:57:09 2012 X-P350-Id: 7e8d11b0ea09bbca From: To: Subject: Calling an annotator from another annotator Thread-Topic: Calling an annotator from another annotator Thread-Index: Ac1FQ+Kd9TEGkoP8TIqqTVe0UEgbLQ== Date: Fri, 8 Jun 2012 06:56:52 +0000 Message-ID: Accept-Language: en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [126.25.25.118] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi, I like to call an annotator from another annotator as it uses annotatations= for which annotators already exist. Calling is not a problem, but setting = the parameter is. Can this be done at all? How? Using uimaFIT the parameter= values are injected using the AnalysisEngineFactory.createPrimitive(). Doi= ng so the parameters are set in the UIMA context of the outer annotator. Th= e inner annotator has its own UIMA context, does it? How can the outer anno= tator's context be accessed while creating the inner annotator? At first I = thought that this could be done the same way as Philip Ogren has done with = XWriterFileNamer and XWriter. You just set the parameters for your XWriterF= ileNamer implmentation in the XWriter context. But this seems to be a littl= e different as I don't instantiate a CasAnnototar_ImplBase object but creat= e an annotator description which is than use to instantiate an AnalysisEngi= ne object by AnalysisEngineFactory in uimaFit or UIMAFramework in UIMA itse= lf. Do you have any suggestions? Or is it just me, not getting to understan= d the UIMA way again? Regards, Armin