Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 69022 invoked from network); 21 Dec 2010 12:13:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Dec 2010 12:13:39 -0000 Received: (qmail 79335 invoked by uid 500); 21 Dec 2010 12:13:39 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 79048 invoked by uid 500); 21 Dec 2010 12:13:35 -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 79040 invoked by uid 99); 21 Dec 2010 12:13:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 12:13:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dav.santucci@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-wy0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 12:13:27 +0000 Received: by wyb40 with SMTP id 40so3935590wyb.6 for ; Tue, 21 Dec 2010 04:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=hWP9NbWa8O6qoqpPSD0zDAlLdzY0KaDzzLMy6MdvH7k=; b=MSy5Sl0XfOPyLp2ywDMdFIgvbAtbHVu3HVTjIj5SeAES41+D8gOJOG8l2uaBei0inM jtXauH6S07/csUaa76nKlCSPnNJuFpYHkouSoJ4JfTEaHDSt55dyREun9rX+nnmPWiia 8q4TqMkc4ZfK2rU3vVG3mIQcIEpiTfQj1rJ0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PG6To24YWviBUa/D3z6QodkJCVloNn12RLS6hi9xmpe6C6RIGSpvCiai3SQyPsQONz cBof19cB8AjOQavUv5cKZea/7GQ/lS6gSxRPiHx0QPdEIHZAp9I4hgIWIv/+XYtRj2qu ycfubUyMyg2Uc0AfmhOVxOwAtqnKTOFELaE1E= MIME-Version: 1.0 Received: by 10.216.3.144 with SMTP id 16mr9667125weh.45.1292933586788; Tue, 21 Dec 2010 04:13:06 -0800 (PST) Received: by 10.216.91.19 with HTTP; Tue, 21 Dec 2010 04:13:06 -0800 (PST) Date: Tue, 21 Dec 2010 13:13:06 +0100 Message-ID: Subject: Adding features on a Concept Mapper dictionary From: David Santucci To: user@uima.apache.org Content-Type: multipart/alternative; boundary=00163649a065289fe90497ea8f97 X-Virus-Checked: Checked by ClamAV on apache.org --00163649a065289fe90497ea8f97 Content-Type: text/plain; charset=ISO-8859-1 Hi, I hope you can help me with a problem with Concept Mapper. I defined a dictionary with more features: ..... How can I access the value of these features? I tried defining a new "MyDictTerm.xml", which defines a type extend the type "MyDictTerm" that extends the standard "DictTerm". "MyDictTerm" contains new features (feature1 and feature2), added in the "Type System Definition" of "MyDictTerm.xml" Component Descriptor Editor. After creating the java classes with "JCasGen" the following code doesn't work: FSIndex index = jcas.getAnnotationIndex(MyDictTerm.type); Iterator it = index.iterator(); DictTerm dict = new MyDictTerm(jcas); while (it.hasNext()) { dict = (MyDictTerm) it.next(); System.out.print("feature1" + dict.getFeature1()); } The system says it needs a cast ((MyDictTerm) dict).getFeature1() , but the system doesn't find any annotation. What's the right way to retrieve features on a dictionary? Best regards, David --00163649a065289fe90497ea8f97--