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 EB8D518DB6 for ; Thu, 27 Aug 2015 08:10:19 +0000 (UTC) Received: (qmail 11321 invoked by uid 500); 27 Aug 2015 08:10:19 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 11277 invoked by uid 500); 27 Aug 2015 08:10:19 -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 11266 invoked by uid 99); 27 Aug 2015 08:10:19 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2015 08:10:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EE94C1822B4 for ; Thu, 27 Aug 2015 08:10:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.008 X-Spam-Level: X-Spam-Status: No, score=-0.008 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-0.006, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MZcMq_-zZaBi for ; Thu, 27 Aug 2015 08:10:18 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id AA0C75070E for ; Thu, 27 Aug 2015 08:10:17 +0000 (UTC) Received: from [192.168.178.24] ([46.244.156.154]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MYOkT-1ZHvoB3q77-00VAhq for ; Thu, 27 Aug 2015 10:10:10 +0200 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Wrong CAS being passed on in AAE From: Martin Wunderlich In-Reply-To: <8AE27C2A-DDF2-4DAA-9D75-B3FEAA1A2BB6@apache.org> Date: Thu, 27 Aug 2015 10:10:09 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7A778A0A-5E15-4191-A6DF-70ED77A14828@apache.org> <86F7FF37-EFFC-4483-97CA-DB26CE315914@gmx.net> <8AE27C2A-DDF2-4DAA-9D75-B3FEAA1A2BB6@apache.org> To: user@uima.apache.org X-Mailer: Apple Mail (2.2104) X-Provags-ID: V03:K0:aKYIQ0G6NBq/7rkmdlyoAWwrUzkk05ZRwREzNLfPz2aK/W7YgKE g/DfV2A2031zJfGflJ32PzSSsRAcTwuvb2W1rd+QYzpf/iUribcnlobRDH5aLKA/a8SUEZ7 OOJXxMQ2S6d3AdM8tdXaYj21MpvfvBET6n/x0OjY5MRWbwQO5/p9PnVitbhnAVZZN8Qeh96 EnrpjUAtuxAOfofcGDsWg== X-UI-Out-Filterresults: notjunk:1;V01:K0:nFDFtSMOQFw=:NfLJWfjcOU0j2DRzEIVT4x ejyEiiFUQCocgZbPTryz9kjg9JSxLjHqG9z0koYi6kmPrYoiXxyO3ErE0IOp2n6hmSQhnt7SQ 1VVt52wapU0VB2ouR+Fo0qNUsSDJout3u6FbwYvHGeGTx+T+zXqCi5eUSAZM2coMbB1f6yYCM DBDg7UAgroUTtgDZafrq5D0Lb2u1Ocp76qN8KKSqUAkp8xyN/GYoju/KmNr3z5u78bLNdZSJN bjM6djUbXrFAafXQAMR79HsMnICeC1FgNBZBoR7BYkk3eYdmrzEz0wcJqo+re4F750V+vqxun 7q65qF6t5pfuAEbmv71W4qnDr/AjjYzPz0J3HO0oL/1EDDehLtQazwLJe0lxmmPWF2FZFSK9K tJSRBP9FpAKQcZC2CTbjAqgAY2FN19fdY1bc1MZjlQX+McARPcAmf2J8k6GhHQXiCyEuu4I1u C0iEyGuvSYxrH7nNoSeVH/9+hnV6nl3DyUxaT/ZhEOLXajhd/ijJVcbKni9QCFtyjaJPhJmiv oeIZ7nbcn7Eu3+2TuGFEqTX94RIPts5KM13dv5XVEServ9fz0l7fzbIY0qrwN1TdhLza/xUCN X90YBavED/GhIYgRL8BzfUkBYfLv4xng6btOSiB5RiZnBXx2aBJiSkCVw083shrE5i71L27cu h80KMl28f+inTHA60oYitqJlNlw8cFT/gsLjILmyVDg2c3+k/2oH0+K+TcqJ1eDr63jm/l2lA JTH1GTxRTZPIa6jxTk9lsanevtAhbGWCekQvew== > Am 26.08.2015 um 23:11 schrieb Richard Eckart de Castilho = : >=20 >=20 > On 26.08.2015, at 22:58, Martin Wunderlich wrote: >=20 >> Kinda like this. It=92s bit more involved, because I was trying to = spare you the details.=20 >>=20 >> First AAE: (FC AE AE AE AE AE AE) >>=20 >> Second AAE: (AE AE AE AE AE) >>=20 >> This does not work: AAE*[ CR AAE (FC AE AE AE AE AE AE) AAE (AE AE AE = AE AE) ] >>=20 >> This _does_ work: AAE*[ CR AAE (FC AE AE AE AE AE AE AE AE AE AE AE) = ] >>=20 >> FC =3D FlowControlloer >> RR =3D CollectionReader >=20 > The CR is always outside the AAE - it is handled separately. >=20 >> This does not work:CR AAE*[AAE (FC AE AE AE AE AE AE) AAE (AE AE AE = AE AE) ] >>=20 >> This _does_ work: CR AAE*[AAE (FC AE AE AE AE AE AE AE AE AE AE AE) ] >=20 > Basically SimplePipeline.runPipeline does (with a few details left = out): >=20 > aae =3D createEngine(aed, aed, aed...) > for (cas : createReader(crd) { > aae.process(cas); > } >=20 > I may have an idea why the first case does not work. Does the AAE > define the flag "outputsNewCases" = (org.apache.uima.resource.metadata.OperationalProperties)? >=20 > /** > * Sets whether this AnalysisEngine may output new CASes. If this = property is set to true, an > * application can use the {@link = AnalysisEngine#processAndOutputNewCASes(CAS)} to pass a CAS to > * this this AnalysisEngine and then step through all of the output = CASes that it produces. For > * example, such an AnalysisEngine could segment a CAS into smaller = pieces, emitting each as a > * separate CAS. > *=20 > * @param aOutputsNewCASes > * true if this component may output new CASes, false if it = does not > */ > public void setOutputsNewCASes(boolean aOutputsNewCASes); >=20 > uimaFIT doesn't do that, you'd have to do that manually just as you = also tweak the flow. Correct: On the last step of the first AAE (a CAS merger) I have set = this flag to true, so that the merged CAS gets output (and the CASes = feeding into the Merger get dropped, as per the FC).=20 So, you mean that this setting is ignored by uimaFit when applying the = SimplePipeline? That would explain why the correct output is missing.=20 Cheers,=20 Martin =20 >=20 > Maybe there could be some way to infer this setting by detecting that = a CAS multipler > is inside an AAE... but then again, probably UIMA core should infer = that, not uimaFIT. >=20 > Cheers, >=20 > -- Richard