From user-return-6282-apmail-uima-user-archive=uima.apache.org@uima.apache.org Wed Jan 7 16:39:50 2015 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 8350C17F4D for ; Wed, 7 Jan 2015 16:39:50 +0000 (UTC) Received: (qmail 60111 invoked by uid 500); 7 Jan 2015 16:39:51 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 60069 invoked by uid 500); 7 Jan 2015 16:39:51 -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 60057 invoked by uid 99); 7 Jan 2015 16:39:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 16:39:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of silvestre.losada@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-la0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 16:39:44 +0000 Received: by mail-la0-f49.google.com with SMTP id hs14so4502395lab.8 for ; Wed, 07 Jan 2015 08:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=aVf8L6/A4PLeLvMhA4cfqYrlq30O55UT9T5G7zHHOiY=; b=pPR5TUlMnc1FQ0kNc/aW0WBFbW6v1sfQoygO+nSF6gsqlnAn+LYU4uCOhN5rArmajh bq0alj375WsgBylStYDw6LCcPwI9Hk/URAJrAcySjFS5ewHZ590zGhwMTa9rrJmS0maA 8ll4opj/oS7YhPLsXH144SXsQn0U/3X6OdC0mF8SF4OzudCG0J9El82b6eqN0p6lhAXx ugJdOIjZtbxTwF38RcmzLOkdRPOznExxj4p33OM6NIg9rbltM1Sw8HWi/LVOJ4MQDKxF o5J1A+e702QqEU5MdGYXTTz1NkIn6dxxjz7VdgeKP2sYulIZAcwG2fz7a1r/XK2HLScr 7DOg== X-Received: by 10.112.119.201 with SMTP id kw9mr5982599lbb.99.1420648628346; Wed, 07 Jan 2015 08:37:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.17.211 with HTTP; Wed, 7 Jan 2015 08:36:48 -0800 (PST) In-Reply-To: References: From: Silvestre Losada Date: Wed, 7 Jan 2015 17:36:48 +0100 Message-ID: Subject: Re: Ruta unmark tokens from given possition. To: user@uima.apache.org Content-Type: multipart/alternative; boundary=047d7bae49dad7e3ae050c12886b X-Virus-Checked: Checked by ClamAV on apache.org --047d7bae49dad7e3ae050c12886b Content-Type: text/plain; charset=UTF-8 I'm answering to my self, (ANY{->UNMARK(ANY)}){CONTEXTCOUNT(Document,20,2000)}; Removes all annotations generated by default seeder that are in postions 20 to 2000. This is working, however it does not work for RutaBasic annotations using the same expression (RutaBasic{->UNMARK(RutaBasic)}){CONTEXTCOUNT(Document,20,2000)}; I dont know the explanation. Regards On 7 January 2015 at 16:46, Silvestre Losada wrote: > HI, > > I'm creating a ruta script, and I want to remove all tokens that are after > position X, in other words I only want to keep first X tokens. I was > playing with ruta conditions, actions and I dont know how to make it. do > you think is possible to do that? > > Kind regards. > --047d7bae49dad7e3ae050c12886b--