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 1C5FB200D2F for ; Wed, 1 Nov 2017 17:02:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1AE0D160BEA; Wed, 1 Nov 2017 16:02:58 +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 5FF6E160BE6 for ; Wed, 1 Nov 2017 17:02:57 +0100 (CET) Received: (qmail 61942 invoked by uid 500); 1 Nov 2017 16:02:56 -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 61930 invoked by uid 99); 1 Nov 2017 16:02:56 -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, 01 Nov 2017 16:02:55 +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 35AE9180705 for ; Wed, 1 Nov 2017 16:02:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.98 X-Spam-Level: * X-Spam-Status: No, score=1.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=unsilo-ai.20150623.gappssmtp.com 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 j0zJjV0f2rSD for ; Wed, 1 Nov 2017 16:02:53 +0000 (UTC) Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 49CE860F96 for ; Wed, 1 Nov 2017 16:02:42 +0000 (UTC) Received: by mail-qk0-f178.google.com with SMTP id d67so3268484qkg.5 for ; Wed, 01 Nov 2017 09:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unsilo-ai.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:message-id:date:to; bh=JzFZ0f5jV4Sp0K1Ylhnb59VIb0ow/Tt6UEnAnZvXIj0=; b=Vz1gT5zHqJ5zXIRgEdu50mFB6uwWJ8pnb56wT6h1TmQccfeT3Cjsa7WQlnIRJ/jgwE afm1wyU7IU2M7qxaFL7SSlg//Pg2XUapgkXw9NhiSVb1gEofWr83JaEM/A8DXCooPVil p+fN3pMXD69mzc8fTwaw6roMNuWmBM+jCNXNHAyyC0VgkR+DvLhli5+z4c2FjEEnbkDG zAcopP/W9V6B4+IQsMUsfJuiku4rQSlonVWijl8KCUSNcRFqZA2kKQ1lpsMRNVw1Jy2o 9sh0St1zObQTp6yzaE2U2xGsVrxV0dCdlO2d1zCopYA9bJreWsFx2yI2XHdHI+18WLh+ mhFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=JzFZ0f5jV4Sp0K1Ylhnb59VIb0ow/Tt6UEnAnZvXIj0=; b=fFM5FiFN6Ej7peocDsV/RSIgTb2sO/WhDpcFsxkO/8ey6uGHTQvP3yfaYPzQfmh8oK wfDfxomHS6jjv+DJk8ybizDk4CZfWfYBX0pdYnsg7hLwQLWBJ7A9iwsmC0clkWEtsXF8 6FmxDgyZbcb+APH+S3gQyczwHG+5pkV3326dpCTgBN8k6J2NQtXSSG8dDFaPBUDvtWex DaeCEgO+j7zYK7KO+6+IOoBf+Rtf9nt+CYl0raoE+4BzCVcOnYMzac5zWmiFBOicKEEx wcvF4nZ+wcbZcBv03lUT97/EXcUKYjLn1Fr+TEaG3a08jcOnlH4tDPFodQ0DKGnKLJId B79A== X-Gm-Message-State: AMCzsaW5Z6dj+hE087ELK9qWuWU9YY7VdO5evCEVjuvSY+jRKe3VrHHH 2deqVmlrWff2ZozGBA+TNCtGheWEEdw= X-Google-Smtp-Source: ABhQp+S5+AkTzSyiA2uOwpC1V94nZ2X2TxhIA/0hetPknnure/1nIvlEwcAq5CQQClUboaRpTn1eeA== X-Received: by 10.55.151.4 with SMTP id z4mr489917qkd.173.1509552160943; Wed, 01 Nov 2017 09:02:40 -0700 (PDT) Received: from ip-172-20-10-3.ec2.internal (77.241.131.184.mobile.3.dk. [77.241.131.184]) by smtp.gmail.com with ESMTPSA id q32sm639168qtg.61.2017.11.01.09.02.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Nov 2017 09:02:39 -0700 (PDT) From: Mario Juric Content-Type: multipart/alternative; boundary="Apple-Mail=_626305E2-1C9D-4761-B98A-30B4E2044A5F" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: uimaFit JCasUtil.selectAt meaning Message-Id: Date: Wed, 1 Nov 2017 17:02:33 +0100 To: user@uima.apache.org X-Mailer: Apple Mail (2.3273) archived-at: Wed, 01 Nov 2017 16:02:58 -0000 --Apple-Mail=_626305E2-1C9D-4761-B98A-30B4E2044A5F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I was wondering what exactly the semantics of JCasUtil.selectAt is = supposed to be after looking into the implementation, since the JavaDoc = isn=E2=80=99t very precise. I initially thought that it would select = annotations of the given type with the exact begin and end, but this is = not the case when inspecting the implementation. The problem is in = CasUtil.selectAt with the following while loop: while (it.isValid()) { AnnotationFS a =3D it.get(); // If the offsets do not match the specified offets, we're done if (a.getBegin() !=3D aBegin && a.getEnd() !=3D aEnd) { break; } it.moveToNext(); list.add(a); } I would have expected that either begin or end must be different to drop = the item, i.e. "if (a.getBegin() !=3D aBegin || a.getEnd() !=3D aEnd)" = instead. This is obviously not the case, and it does not have the same = behaviour like selectCovered either, so what is the intend if it=E2=80=99s= not a bug? Best, Mario --Apple-Mail=_626305E2-1C9D-4761-B98A-30B4E2044A5F--