Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C28E2200C86 for ; Wed, 31 May 2017 14:18:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C11E1160BCB; Wed, 31 May 2017 12:18:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 12D75160BBA for ; Wed, 31 May 2017 14:18:45 +0200 (CEST) Received: (qmail 17685 invoked by uid 500); 31 May 2017 12:18:45 -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 17673 invoked by uid 99); 31 May 2017 12:18:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2017 12:18:44 +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 879C0180370 for ; Wed, 31 May 2017 12:18:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.002 X-Spam-Level: X-Spam-Status: No, score=-5.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ygXXso9McRwv for ; Wed, 31 May 2017 12:18:40 +0000 (UTC) Received: from mail-edgeS23.fraunhofer.de (mail-edges23.fraunhofer.de [153.97.7.23]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 199B25F19D for ; Wed, 31 May 2017 12:18:40 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2GyBQBxsy5Z/xoBYJldGwEBAQMBAQEJAQEBg1VigQ2DcpwHkxiEcCiFfAKCYVcBAgEBAQEBAgNoKIJlRiwBAQEBAQEBAQEBAQEBAQEBAQEBAQEBFgEBAQEBASMCCCsgGAYjBBFRCxoCJgICVxMGAgEBiiUBBKt0gWw6i14mgQuFVoFgK4J0hDoSARxMgkaCYAWeI3mBF5EYiwYFhmyUTlh/CzAhJIdedAGHJIIuAQEB X-IPAS-Result: A2GyBQBxsy5Z/xoBYJldGwEBAQMBAQEJAQEBg1VigQ2DcpwHkxiEcCiFfAKCYVcBAgEBAQEBAgNoKIJlRiwBAQEBAQEBAQEBAQEBAQEBAQEBAQEBFgEBAQEBASMCCCsgGAYjBBFRCxoCJgICVxMGAgEBiiUBBKt0gWw6i14mgQuFVoFgK4J0hDoSARxMgkaCYAWeI3mBF5EYiwYFhmyUTlh/CzAhJIdedAGHJIIuAQEB X-IronPort-AV: E=Sophos;i="5.38,423,1491256800"; d="scan'208";a="51031812" Received: from mail-mtaka26.fraunhofer.de ([153.96.1.26]) by mail-edgeS23.fraunhofer.de with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 31 May 2017 14:18:32 +0200 X-IronPort-AV: E=Sophos;i="5.38,423,1491256800"; d="scan'208";a="238944124" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from kso.scai.fraunhofer.de ([193.175.167.130]) by mail-mtaka26.fraunhofer.de with SMTP; 31 May 2017 14:18:08 +0200 Received: from ksi.scai.fraunhofer.de (ksi.scai.fraunhofer.de [129.26.128.4]) by kso.scai.fraunhofer.de (Postfix) with SMTP id F135B120156 for ; Wed, 31 May 2017 14:18:03 +0200 (CEST) Received: from [129.26.131.10] (lebesgue.scai.fraunhofer.de [129.26.131.10]) by ksi.scai.fraunhofer.de (Postfix) with ESMTP id 5B6D13FFF6 for ; Wed, 31 May 2017 14:18:03 +0200 (CEST) Subject: Re: UIMA Ruta use of features in a block statement From: Sumit Madan To: user@uima.apache.org References: <2146449917.2945085.1496151331791.JavaMail.zimbra@scai.fraunhofer.de> <1dec92a8-13a0-beb4-bc30-3f056227d693@averbis.com> <1928343073.2947554.1496155059954.JavaMail.zimbra@scai.fraunhofer.de> <2baef45a-0269-af9a-6fb1-48f8af8d992f@scai.fraunhofer.de> <589e4bad-cec6-e344-f12f-bff84a16f0fa@scai.fraunhofer.de> Organization: Fraunhofer SCAI Message-ID: <2ef61ddd-a843-aa4c-0ff5-7bef2f2b3319@scai.fraunhofer.de> Date: Wed, 31 May 2017 14:18:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <589e4bad-cec6-e344-f12f-bff84a16f0fa@scai.fraunhofer.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: quoted-printable archived-at: Wed, 31 May 2017 12:18:47 -0000 Am 31.05.2017 um 13:26 schrieb Sumit Madan: > Am 31.05.2017 um 09:59 schrieb Peter Kl=C3=BCgl: >> Hi, > > Hi Peter, > >> Am 30.05.2017 um 19:35 schrieb Sumit Madan: >>> We were not able to access the annotation within the BLOCK. >>> >>> ### >>> STRING s; >>> BOOLEAN a ; >>> >>> // This is not working for us: >>> BLOCK(forEACH) Lemma{}{ >>> Lemma{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; >>> Lemma{a ->Test1}; >>> } >>> >>> // This is working: >>> BLOCK(forEACH) Lemma{}{ >>> W{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; >>> W{a ->Test2}; >>> } >>> >>> // This is also working: >>> BLOCK(forEACH) Lemma{}{ >>> Document{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; >>> Document{a ->Test3}; >>> } >>> ### >>> >> All three examples should work. Which ruta version do you use? It look= s >> like a bug. > > Lisa is testing again and will get back to you. We tested it again and can confirm the following: ### STRING s; BOOLEAN a ; // This is not working: BLOCK(forEACH1) Lemma{} { // Matches a lot Lemma{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 0 Lemma{a ->Test1}; } // This is not working: BLOCK(forEACH2) Lemma{} { // Matches a lot Lemma{contains(Lemma.ct, "er") -> MARK(Test2)}; // Matches 0 } // This is working: Lemma{contains(Lemma.ct, "er") -> MARK(Test3)}; // Matches 1 // This is working: BLOCK(forEACH4) Lemma{}{ W{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1 W{a ->Test4}; } // This is also working: BLOCK(forEACH5) Lemma{}{ Document{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1 Document{a ->Test5}; } ### Is it possible that in a BLOCK only Ruta types are available? We are using the latest stable version 2.6.0. --=20 Mit freundlichem Gru=C3=9F / Best regards Sumit Madan, M.Sc. Wissenschaftlicher Mitarbeiter / Research fellow Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI) Department of Bioinformatics Schloss Birlinghoven D-53754 Sankt Augustin Room: C3-242 Tel.: +49 2241 14 2997 Email: sumit.madan@scai.fraunhofer.de Internet: http://www.scai.fraunhofer.de/