From uima-user-return-396-apmail-incubator-uima-user-archive=incubator.apache.org@incubator.apache.org Wed Jul 11 21:14:25 2007 Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 93038 invoked from network); 11 Jul 2007 21:14:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 21:14:24 -0000 Received: (qmail 50765 invoked by uid 500); 11 Jul 2007 21:14:27 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 50752 invoked by uid 500); 11 Jul 2007 21:14:27 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 50743 invoked by uid 99); 11 Jul 2007 21:14:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 14:14:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [143.167.1.4] (HELO marmot.shef.ac.uk) (143.167.1.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 14:14:23 -0700 Received: from holly.dcs.shef.ac.uk ([143.167.8.1]) by marmot.shef.ac.uk with esmtp (Exim 4.52) id 1I8jVa-0007D4-07 for uima-user@incubator.apache.org; Wed, 11 Jul 2007 22:14:02 +0100 Received: from [127.0.0.1] (frida.dcs.shef.ac.uk [143.167.10.43]) by holly.dcs.shef.ac.uk (8.13.6+Sun/8.13.6) with ESMTP id l6BLE18g018784 for ; Wed, 11 Jul 2007 22:14:01 +0100 (BST) Message-ID: <46954813.2060101@dcs.shef.ac.uk> Date: Wed, 11 Jul 2007 22:13:55 +0100 From: Julien Nioche User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: get all the annotations located between two positions References: <071120071739.18013.469515D40009E2210000465D2206998499C0C0CFCD099D0A0D03040108@comcast.net> <46951D80.9010307@schor.com> <4695221C.3050500@gmx.de> In-Reply-To: <4695221C.3050500@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-S0phie-Scan: no X-Virus-Checked: Checked by ClamAV on apache.org Hi, Sorry if someone already asked the question. Is there a direct way to obtain from a Cas all the annotations of a given type located between two positions in the text? Something like getContained(String type,int start,int end)? I am trying to get all the Tokens contained within a specific Sentence. I have used iterators for doing that and compared the offset with those of the Sentence but it is a bit tedious. Have I missed something obvious? Thanks Julien