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 4A503101BB for ; Thu, 24 Oct 2013 20:02:33 +0000 (UTC) Received: (qmail 27336 invoked by uid 500); 24 Oct 2013 20:01:14 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 27240 invoked by uid 500); 24 Oct 2013 20:00:48 -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 27183 invoked by uid 99); 24 Oct 2013 20:00:38 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2013 20:00:38 +0000 Received: from localhost (HELO [10.0.1.20]) (127.0.0.1) (smtp-auth username rec, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2013 20:00:38 +0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: uimaFIT: external resource bindings? From: Richard Eckart de Castilho In-Reply-To: Date: Thu, 24 Oct 2013 22:00:35 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@uima.apache.org X-Mailer: Apple Mail (2.1510) It largely depends on how you use the ConceptMapper. External resources = require three things to work: 1) an external resource description 2) a declaration on the analysis engine that it accepts an external = resource (a dependency) 3) a binding binding between the two Since the ConceptMapper is not an uimaFIT component, i.e. it is not = using the @ExternalResource annotation, uimaFIT cannot create 1 = automatically. So you can create it manually using = createDependencyAndBind(), which performs steps 2 (using the = createDependency() call) and 3 (using a bindResource() call). Of course, = you can also manually call createDependency() and bindResource() = separately - which I think you were asking for. If just pass the external resource description to the = createEngineDescription() call, it only does 3, but not 2 - this = approach only works if the AE you create the descriptor for uses the = @ExternalResource annotation to declare external resources. -- Richard On 24.10.2013, at 17:56, Jens Grivolla wrote: > Ok, I guess I don't actually need to do that, ConceptMapper only looks = for the "key" and doesn't seem to know about the indirect binding, = right? >=20 > And in uimaFIT if I want to bind the same resource to several AEs I = use createExternalResourceDescription() and then just pass it like any = other parameter to createEngineDescription()? >=20 > Bye, > Jens >=20 > On 10/24/2013 05:28 PM, Jens Grivolla wrote: >> Hi, I'm trying to run ConceptMapper from uimaFIT, but >> createDependencyAndBind doesn't seem to allow to separate declaring = the >> external resource (with a "name") and binding that "name" to a "key". = I >> looked through ExternalResourceFactory but didn't find any method = that >> seems to obviously do what I need. What should I do? >>=20 >> Btw, I updated ConceptMapper to be based on JCasAnnotator_ImplBase >> instead of Annotator_ImplBase and TextAnnotator (both deprecated). >>=20 >> Bye, >> Jens