Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 46910 invoked from network); 20 Jun 2008 01:15:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2008 01:15:34 -0000 Received: (qmail 90161 invoked by uid 500); 20 Jun 2008 01:15:36 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 90139 invoked by uid 500); 20 Jun 2008 01:15:36 -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 90128 invoked by uid 99); 20 Jun 2008 01:15:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2008 18:15:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lally.adam@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2008 01:14:46 +0000 Received: by py-out-1112.google.com with SMTP id u52so469135pyb.13 for ; Thu, 19 Jun 2008 18:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=oev/nQPN/ENZUt+AGyg6aNvNezdRmZa7AwQf1vMaCWM=; b=pSi8tL3d2hxWA9OHhYSO6xwmvLAreIuQnYKPzL1nvXyEYfyQDX/Pkt1cH7v+p9RLUL JTFRNP+uUHpJKEfmvmT3vTklvbMnNkSoAtEFzfqoLqu2zIUXZHYq6QdJdV2oE1I4uqyO rb+q9iDEvQZgHU/udqWh2Pr6Yoaq6mUR1Be2A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=ICLW8PvebwWmUjQOj8IZObCG6PKi26smfc/gHtXk6y19ECZiT74hTKHC8LLGPXIM5L fTdUpKS8/nNz5HnHVJTx4xonMPTihf0NVQmm1LHopYdExTcL6NF4tFP36TkP4frhXNKU KTOmeH2Z8Oqa1eQqGtPyTImwGIXQbRF1Fqyts= Received: by 10.115.106.7 with SMTP id i7mr3595471wam.131.1213924504334; Thu, 19 Jun 2008 18:15:04 -0700 (PDT) Received: by 10.143.36.13 with HTTP; Thu, 19 Jun 2008 18:15:04 -0700 (PDT) Message-ID: <2787e08a0806191815l3e6972ffv21f35b823085e0c6@mail.gmail.com> Date: Thu, 19 Jun 2008 21:15:04 -0400 From: "Adam Lally" Sender: lally.adam@gmail.com To: uima-user@incubator.apache.org Subject: Re: ConceptMapper with multiple dictionaries In-Reply-To: <5cdd31570806191212i1ba64789o109637e22cebe87e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5cdd31570806191109w515aa103x115991dbb24f7c02@mail.gmail.com> <31923CD68FF05B42B1D3AC08F2D733B5033DB3FA@nybf01-mail01.ad.gd-ais.com> <5cdd31570806191212i1ba64789o109637e22cebe87e@mail.gmail.com> X-Google-Sender-Auth: d792d89dd7d0bf51 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jun 19, 2008 at 3:12 PM, Ahmed Abdeen Hamed wrote: > My apologies that my question wasn't clear enough. I am trying to use the > ConceptMapper example that was posted on the list a couple of days ago. > However, the example came with one dictionary only. I have a need to access > more than one dictionary. So, I created a primitive AE similar to the > ConceptMapperOffsetTokenizer.xml and I added its entry to the aggregate AE > OffsetTokenizerMatcher.xml. However, the only dictionary that get loaded > when the two primitive ones are listed on the aggregate is the dictionary > listed in the ConceptMapperOffsetTokenizer.xml, not the second dictionary > that I just created. On the other hand, if I list only one of them in the > aggregate AE, the correct dictionary gets loaded. This is a guess, but make sure that in the element of the primitive descriptors, you use a different value of the field for each of your dictionaries. And then in the element of each primitive descriptor, you bind that primitive AE's resourceDependency to the appropriate externalResource representing the dictionary that you want it to use. If you use the same name for more than one externalResource, only one will be used. Although I thought there was a warning in the log file in this case - you may want to check for that. For this reason, it's a good idea to use qualified names (like dotted names such as those used for Java classes) for resources. -Adam