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 71A6C1066F for ; Mon, 21 Oct 2013 15:35:59 +0000 (UTC) Received: (qmail 48952 invoked by uid 500); 21 Oct 2013 15:35:59 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 48902 invoked by uid 500); 21 Oct 2013 15:35:58 -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 48878 invoked by uid 99); 21 Oct 2013 15:35:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 15:35:57 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msa@schor.com designates 69.93.154.26 as permitted sender) Received: from [69.93.154.26] (HELO gateway09.websitewelcome.com) (69.93.154.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 15:35:49 +0000 Received: by gateway09.websitewelcome.com (Postfix, from userid 507) id 24AE3932F6702; Mon, 21 Oct 2013 10:34:20 -0500 (CDT) Received: from gator3253.hostgator.com (gator3253.hostgator.com [198.57.247.217]) by gateway09.websitewelcome.com (Postfix) with ESMTP id 0BAF2932F66AD for ; Mon, 21 Oct 2013 10:34:20 -0500 (CDT) Received: from [129.34.20.23] (port=44748 helo=[9.2.210.195]) by gator3253.hostgator.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1VYHVv-0001it-Vm for user@uima.apache.org; Mon, 21 Oct 2013 10:35:28 -0500 Message-ID: <526549C1.7000805@schor.com> Date: Mon, 21 Oct 2013 11:35:29 -0400 From: Marshall Schor User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: HashMap as type feature References: In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3253.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([9.2.210.195]) [129.34.20.23]:44748 X-Source-Auth: msa+schor.com X-Email-Count: 6 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yMzI1My5ob3N0Z2F0b3IuY29t X-Virus-Checked: Checked by ClamAV on apache.org The CAS doesn't natively support hash maps. One possible motivation is that the design was aimed at allowing multiple independent systems to process the CAS data, including Annotators written in C++. To support this, it would be necessary to implement a common hash map in multiple languages (Java, C++, Python, Perl, etc.), which wasn't done. Richard's suggestion is a possibility, though. The other thing that people sometimes do is to store map data in external resources, which can be shared among co-located Annotators (running in the same JVM). -Marshall On 10/16/2013 11:55 AM, Dr. Armin Wegner wrote: > Hi, > > I'd like to have a type feature that is a list of key-value pairs. The > number of pairs is unknown. What's best for this? Is it even possible? > > Thanks, > Armin >