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 2E7DF9965 for ; Thu, 29 Mar 2012 22:11:46 +0000 (UTC) Received: (qmail 21958 invoked by uid 500); 29 Mar 2012 22:11:45 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 21912 invoked by uid 500); 29 Mar 2012 22:11:45 -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 21894 invoked by uid 99); 29 Mar 2012 22:11:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 22:11:45 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of eaepstein@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 22:11:38 +0000 Received: by wibhj13 with SMTP id hj13so9392wib.12 for ; Thu, 29 Mar 2012 15:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rJZ6C5xix24ShBMEMzOUoKFOxLxMzv7Y4NW6t0bb9ds=; b=ac8dx0sTfLdJAZm6dC62Rz7aM/aAH0HUz1L63ByBnWelIZPYBY0W8FTfQcQa0Yd/j9 RMQB3mnWpXv0X0gdKICaTjk55nicb9NO3LQkJPUJ2i58tV0thJVAjzC6xPjCALD7B+BA Haaqw6bsu4r74vXkj4E3v0qU/L2QQtXSb9vlkQXZgzF5CKEuVQQuFgV/paNTDeapIaNY bO5iWzrsD3WyZ6N7kX9E/eg+bdkVR9DBYF5lVT28kaP/64Hvs73CZQS6j0NSt6L4jmMj MDdc+oMA+SU7KABGcqPMEU/g7sPq1WhMkIDeLq2DtYrO6vNQPL/yFgbx9qVV9h+EKAwx rAKA== MIME-Version: 1.0 Received: by 10.180.105.194 with SMTP id go2mr9767141wib.22.1333059077369; Thu, 29 Mar 2012 15:11:17 -0700 (PDT) Received: by 10.216.229.4 with HTTP; Thu, 29 Mar 2012 15:11:17 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Mar 2012 18:11:17 -0400 Message-ID: Subject: Re: fsIndexes From: Eddie Epstein To: user@uima.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org You'd have to modify the source code, yes. Creating a new index is trivial. For example, in PersonTitleAnnotator.xml, add a new string feature to the type example.PersonTitle. Then define a new index: example.PersonTitle set what standard Note that types and indexes are supported by the ComponentDescriptorEditor. In the annotator source code, define the new Feature "mPersonTitleWhatFeature" and set it with the title type, e.g. title.setStringValue(mPersonTitleWhatFeature, aTitleType); This index will have only one instance for each unique title found in the document. Eddie On Wed, Mar 28, 2012 at 8:56 AM, Michael wrote: > OK, thanks Eddie. > >>>Be sure to set the feature before adding the > feature structure to the index repository. > > Don't see how I can do this, I'm using Whitespace + Dictionary. Do I have to > modify the source-code of these or can this all be done in de annotator.xml > files? Anyway you can provide me with an example? > > Michael > >