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 25F8A200CBD for ; Thu, 6 Jul 2017 18:00:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24642166C48; Thu, 6 Jul 2017 16:00:52 +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 7385E166C47 for ; Thu, 6 Jul 2017 18:00:51 +0200 (CEST) Received: (qmail 3992 invoked by uid 500); 6 Jul 2017 16:00:50 -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 3833 invoked by uid 99); 6 Jul 2017 16:00:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2017 16:00:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AF0DE1A0103 for ; Thu, 6 Jul 2017 16:00:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.8 X-Spam-Level: X-Spam-Status: No, score=-1.8 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Im1nZNKWX6qq for ; Thu, 6 Jul 2017 16:00:47 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 610C05F4A7 for ; Thu, 6 Jul 2017 16:00:47 +0000 (UTC) Received: from [192.168.11.108] ([212.60.243.34]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MV2eD-1dCrP10Mft-00YPai for ; Thu, 06 Jul 2017 18:00:46 +0200 Subject: Re: UIMA Ruta use of features in a block statement 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> <2ef61ddd-a843-aa4c-0ff5-7bef2f2b3319@scai.fraunhofer.de> From: =?UTF-8?Q?Peter_Kl=c3=bcgl?= Message-ID: <7bf633b3-50e4-44d4-2e69-a7aa296e0701@averbis.com> Date: Thu, 6 Jul 2017 18:00:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <2ef61ddd-a843-aa4c-0ff5-7bef2f2b3319@scai.fraunhofer.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:2wi4GGkSNDlKP5QveKfmLJnX7YLRVJ1fu8fjxFKgX44MyXQ2CMq cmTyOQffRMVR3VgjzF/QuF28r1lI6/3gTDr8aDdoOfr0VanE0+fdMPer2rcYtWtb9NpOiyG rx8hr97FmgK150eCQ/GeadQiWEnztZFXvxEE+y/wSUw0ecBmJs8jjh+vLN0l8A+l0ziaN7V OcABWxdedsfM5LogF2QBw== X-UI-Out-Filterresults: notjunk:1;V01:K0:s9fHGA+tS6g=:Ilz0zb+pdarva1cO/Q7nUz D6GZZVibbrTmev4P4bvkH194JNfp8HoiiaDDxK0Xhz/ws+Zy8EMzWEN/D0DSGJmEU1FUmfNIP ot3G60vmPbKf5DUzuRYFOe83LNnjm59HR5Pvt5F85BmKo8Ddag+wHgDKbQCRXKVodMcA9xZsc odwEaxgI4QoMIQVQ3tisDnmqWr5q7iprexX2gJt8KOaTDyioS9LP1At9VWaZ7LdTsnpXvwGv9 0Uq9K8eUi+gi6uQ5/lbP06OBAfkSoDPXPnwKNpiLldvtqVVnAfSjmH0gh4lWbKlu0VS1iH0u+ JD3Ilex/F3lOyWxVVGcDK605xSACJGCFMAnsFx0S8DJMX4z0RfJBLkJ/o3nqrEjq7ECDlkuLQ stoefimI0b9SeK5Dlgc6GXkMC+wuKRXhAKrV7EzDD3YF1FXuU+WKlStW08V9Z4UwBVs2pRppA ATpbs0svbsT7KeINY0+A6f78pu9FXwVv8yX9qbfdVaawcSunVLcU/eDUXBwrt9oIKnFTEdo6b RDznhwz8V5099FoQXbR6aHsWBfhtAe/Ar+c9AtBjal3P6sM3P66yBbvi6lUdBGUb1y7dM6hYn WJQh3eLZ7KyDRarghF3Z0jlqY5UvC1gbpNsfC7WoxGGAyypGf42yW1PgbY2JYag81dKDQtsQn 4naNb4En+AP4zdNf8ISXxz6Xyv2qI5JlwUiHKLlDMRCfwZ38B4NDGi8Xxc1e9Z+/8pVTTBdAp 5pp4GL4JbXpesQ1v archived-at: Thu, 06 Jul 2017 16:00:52 -0000 Hi, I cannot reproduce the problem. So you have maybe a small runnable test? Best, Peter Am 31.05.2017 um 14:18 schrieb Sumit Madan: > Am 31.05.2017 um 13:26 schrieb Sumit Madan: >> Am 31.05.2017 um 09:59 schrieb Peter Klügl: >>> 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 looks >>> 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. >