Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 12987 invoked from network); 4 Jan 2011 11:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2011 11:39:03 -0000 Received: (qmail 60902 invoked by uid 500); 4 Jan 2011 11:39:03 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 60843 invoked by uid 500); 4 Jan 2011 11:39:02 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 60833 invoked by uid 99); 4 Jan 2011 11:39:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 11:39:01 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tommaso.teofili@gmail.com designates 209.85.216.47 as permitted sender) Received: from [209.85.216.47] (HELO mail-qw0-f47.google.com) (209.85.216.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 11:38:54 +0000 Received: by qwg5 with SMTP id 5so13872869qwg.6 for ; Tue, 04 Jan 2011 03:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=YGTKzMxGOCFKvww3ja0htDZUGDVHV7LWXyp1c97LeTo=; b=NLY0sCPT3JxCJMnU4lgSr8bBTiowT3egUNeL6P4B9+ozBwsvdyf8IFqKWpvLysHVm5 r8QFb27Siwj93z31433TXDDrHdqtYfH9/mog/eisAPmGu1Lxbq1VaLjuyXIJtNdIDUS6 xdPmY6jPLAr207A+u8gmcjH7ZQKqQQ11V0ffc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=vGH1z4yKx3aEkU3xi7cT4nDUZs9dkS+Vp56colj9krogSeMHQun5U7q1h+d3eH0++a g/I+zY9ZR/VnBI3j1m7BjpGUy3ARLx9ci9YXogNTKW6a7jWh+GYNhVe3imkGPP68X3Vd XFDpeVsMjao9il7L67GuhwiyEs0e18J2qm6D8= Received: by 10.229.226.72 with SMTP id iv8mr6879412qcb.204.1294141113674; Tue, 04 Jan 2011 03:38:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.245.66 with HTTP; Tue, 4 Jan 2011 03:38:13 -0800 (PST) In-Reply-To: <4D22EC01.2080607@4sengines.com> References: <5863FB4055D90542A7A7DAE0CEF2ACB0060C55F041@E2K7CCR1.netvigour.com> <5863FB4055D90542A7A7DAE0CEF2ACB0064ED7CDBD@E2K7CCR1.netvigour.com> <4D22EC01.2080607@4sengines.com> From: Tommaso Teofili Date: Tue, 4 Jan 2011 12:38:13 +0100 Message-ID: Subject: Re: AW: UIMA integration To: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=00163630f3375eaba1049903b5b8 X-Virus-Checked: Checked by ClamAV on apache.org --00163630f3375eaba1049903b5b8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, Franco, now that UIMA SDK has been released you can add the uimaj-ep-runtim= e dependency directly from Apache repositories with: org.apache.uima uimaj-ep-runtime 2.3.1 However I'll fix this on clerezza-uima modules too, in a short time also UIMA sandbox components will be released and we'll get rid of system scoped dependencies. Florent, thanks for your feedback, I fixed building in UIMA sandbox so now you only have to checkout the sandbox, cd aggregate-addons and do mvn install. Hope this helps, Tommaso 2011/1/4 florent andr=E9 > Hi Franco, > > From my personal experience, UIMA maven bundle are not all still > available in a consistent way in public maven repos (but uima team work > on it). > > So for get out uima bundle retrieve problem, I suggest you to first svn > co uima and build it locally. > > You may have some little workaround to do (change some dependencies > version), but it's work ! :) > > HTH > ++ > > > On 01/04/2011 10:36 AM, Franco Fallica wrote: > > Hi Tommaso, > > > > a while ago you sent me the below explanations for clerezza/uima > integration. > > > > I just spent the last couple of hours installing your bundles but I > didn't succeed. > > would you be so kind and provide me with some kind of installation > instructions? > > > > What I did is: > > > > add the 4 modules of org.apache.clerezza.uima as dependencies to my > bundle. > > additionaly I need the dep. to org.apache.uima/uimaj-ep-runtime > > > > in the end I was able to build the bundles but when I installed them. > org.apache.clerezza.uima.utils is missing the package org.apache.uima. > > in the pom of it. there is the following: > > > > org.apache.uima > > uimaj-ep-runtime > > system > > > ${project.basedir}/../lib/org.apache.uima.runtime_2.3.1.SNAPS= HOT.jar > > > > > > so I don't see why it wouldn't find this jar. > > > > anyhow I would be very glad if you or anybody else for that matter coul= d > point me in the right direction. > > > > thank you very much and regards > > franco > > > > > > > > -----Urspr=FCngliche Nachricht----- > > Von: Tommaso Teofili [mailto:tommaso.teofili@gmail.com] > > Gesendet: Montag, 8. November 2010 14:49 > > An: clerezza-dev@incubator.apache.org > > Betreff: Re: UIMA integration > > > > Hi Franco, > > > > 2010/11/8 Franco Fallica > > > >> I've been working on something quite similar. And while looking at you= r > >> code I decided to abandon my stuff and rather use yours as a basis for > what > >> we are trying to accomplish. > > > > > > what is that exactly, can I help in some ways? > > > > > >> Would it be possible for you to write a (very) short how-to about how = to > >> use your implementation or could you provide a short example? > >> > > > > You can find very short examples inside ExternalServicesFacadeTest insi= de > > org.apache.clerezza.uima.utils module. > > A common scenario can go like this: > > > > // node representing a text resource > > > > Node existingNode =3D .... > > > > // create the UIMAServicesFacade > > > > UIMAServicesFacade uimaServicesFacade =3D new ExternalServicesFacade(); > > > > // set runtime parameters for AlchemyAPI/OpenCalais inside a Map > > > > Map parameterSettings =3D new HashMap()= ; > > > > parameterSettings.put("apikey", "AVALIDALCHEMYAPIKEY"); // param for > >> AlchemyAPI > > > > externalServicesFacade.setParameterSetting(parameterSettings); > > > > > >> // extract a list of concepts related to a text > > > > String resourceText =3D existingNode.toString(); > > > > List concepts =3D > >> externalServicesFacade.getConcepts(resourceText); > > > > > > then with that list of FeatureStructures, that are UIMA objects > containing > > Types (entities or annotations) and their Features (properties) you can > > enhance the node representing that resource. > > > > UIMAUtils.enhanceNode(existingNode, concepts); > > > > > > the enhanceNode() method uses the ontology inside > > org.apache.clerezza.uima.ontologies module to build a graph of UIMA typ= es > > and features binding it to the existingNode. > > You can find such a behavior inside the metadata-generator. > > > > I hope I clarified a little bit, If not (sorry and) let me know or keep > > asking. > > Regards, > > Tommaso > --00163630f3375eaba1049903b5b8--