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 F18C317CD0 for ; Fri, 26 Jun 2015 14:51:42 +0000 (UTC) Received: (qmail 29534 invoked by uid 500); 26 Jun 2015 14:51:42 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 29493 invoked by uid 500); 26 Jun 2015 14:51:42 -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 29481 invoked by uid 99); 26 Jun 2015 14:51:42 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2015 14:51:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 22DCFD076F for ; Fri, 26 Jun 2015 14:51:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Subc038Cw5Sw for ; Fri, 26 Jun 2015 14:51:41 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id CC83F205B8 for ; Fri, 26 Jun 2015 14:51:40 +0000 (UTC) Received: from [192.168.11.108] ([132.230.176.14]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MUEy2-1ZZLDU1K4Y-00R3uO for ; Fri, 26 Jun 2015 16:51:30 +0200 Message-ID: <558D6767.3060105@averbis.com> Date: Fri, 26 Jun 2015 16:53:27 +0200 From: =?UTF-8?B?UGV0ZXIgS2zDvGds?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Ruta: delete some annotation whose text length is smaller than n? References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:RWy4rA+a2s2lJxqH+U7g24pqDdYzdLukuWHC2J+flqHUPnpz1RI wVZeLpGNJKKrbbkui+DUDsCckLtnkrJ6EjDCEl4l5EbAoIE1KXpscD+UD7Dy4qpVHrz7kU3 KTdouk0ORE+2vP0ntho4trII5xL/Kd1iseShL8nKe9Ke3uhpmEyc4ZHfp3/4ceqYfWD1s+a X/uQHqi82r5ifasUc1k2A== X-UI-Out-Filterresults: notjunk:1;V01:K0:KnUth+Wawaw=:xIEmHtBrdWdUckm1hfVUod KNOZ7dNpzwliWRURnsb1YY/FCT2zeP6xpGpq/9I4jHBwbrJyCr2mISwRQZJJ5lyxGGzA5K2xV jFeWO1rwHNnBiURgptrecXaY6GR2VPGsUVQoh8rsWbXzbXOE55WZjGOpkwY+/eYs2pSW5SqEO L3fLaJfJ6kMODNUdqxr3oyCSiGDyvHDi4U/e+SSaS/mM4yWIAyR7folNFbHjRR6GKXQXZzO6Y E4tGcSaWOQAk39esb7y+j9dGq1CjatNFkP+OtZzA0nV0ZEyoecEbteVXop9GQDw1gaoTK47Lr 5XNn/XrOfwnz+mAN9lvBNvEoigLvJZM0r/1QznEGMzFuG/qgD58US02c+z2gNSFcSewjHqvpE txYWFhioDxCRp4ewy4Xc94pNjX+OBjGYsoG6Buk7Q8wlGX2z1KFBZhLhYJa8vz+6dgzihRDQg EIIyvhPCVt3lqy/W3DNy4v5bhZgwFE9rcuJsZY2hh8dTJrIRhE/nsz1IlkTyLhU66KXLef5tJ l/AUbfxUyhW08NeDYhwRQ1O9GrxfxvFdHkRyBtRzqAwCn6KbF5xuH2gEeAA893hCcLx5ZBspY fru7FehuiGEIix3HcmzVvMrqovG0IBebrIcJQoWMYG8mSII5C4T+VtxRH+zB+Cnb5Eug+KXA9 VGbkVfY2Amx0LNAuvC8hRbkwjL2IIDi/jd6T98jAQg+3LyQ== Hi, I would normally say: MyAnnotation{(MyAnnotation.end - MyAnnotation.begin) < 2 -> UNMARK(MyAnnotation)}; ... but there is a bug (UIMA-4472), which prevent the rule to work correctly. I fixed it in the current trunk and it works now. I use to write rules like the following because they are shorter: MyAnnotation{REGEXP(".") -> UNMARK(MyAnnotation)}; Best, Peter Am 26.06.2015 um 10:23 schrieb Renaud Richardet: > How can I delete some annotation whose text length is smaller than n? I > tried: > > MyAnnotation{IF((end-begin) < 2)->DEL}; > > but no luck so far. Thanks! >