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 97D769D8D for ; Mon, 11 Jun 2012 06:50:18 +0000 (UTC) Received: (qmail 65513 invoked by uid 500); 11 Jun 2012 06:50:18 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 65185 invoked by uid 500); 11 Jun 2012 06:50:17 -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 65128 invoked by uid 99); 11 Jun 2012 06:50:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 06:50:14 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tommaso.teofili@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 06:50:10 +0000 Received: by werg55 with SMTP id g55so1838827wer.6 for ; Sun, 10 Jun 2012 23:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=TUrmA+XytEwPA3XllpKDhdR5yNTN0oJGxdSsTSoHyXg=; b=AWdvIjg8DHee5L+AASX08kuMZVYdF91cWC5rx4eBJDlNfUpnHoqEUhb0UMhwCJBfUd /mJpb30kvK1ycj6wY5wbS+cT96/hg8jp5CsN5UcpMa5tU0tqQVlgFAHt1RFIjTH344Sg gqD+qTOLpjjtz0slmvP234UECfFMhyJbDUX7vECyf1wG9bqQd5OLDILY0cIF65ePtDBb G+L1/bdENzKPBS2xRWpc+7s+TzsIIANREqx8YuztXk6WrsE5vYgk1Q4oAvPBQgZAZZa+ tJwsObNWawIizKqfnXgKbnP4fpS7jQhy6GHmFr31PF7mfkJUr9sXLjS4HMS/6QXUv/u2 vxQw== Received: by 10.180.94.4 with SMTP id cy4mr18177352wib.2.1339397389256; Sun, 10 Jun 2012 23:49:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.99.161 with HTTP; Sun, 10 Jun 2012 23:48:55 -0700 (PDT) In-Reply-To: References: From: Tommaso Teofili Date: Mon, 11 Jun 2012 08:48:55 +0200 Message-ID: Subject: Re: [ANN] UIMA/Drools bridge: use Drools to write NLP gramras To: user@uima.apache.org Content-Type: multipart/alternative; boundary=f46d0444038499872504c22cc18c X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444038499872504c22cc18c Content-Type: text/plain; charset=ISO-8859-1 Nice thing Roberto, thanks for letting us know! Have a nice day, Tommaso 2012/6/8 Roberto Franchini > Hi, > we have released on github a little bridge that allow to write NLP > grammars using Drools rule engine (http://www.jboss.org/drools) > > https://github.com/celi-uim/uima-drools > > We use Drools as an NLP-grammars engine since 2010 and we are very > happy with it. > > This project is just a proof of concept: it shows how Drools can be > embedded in UIMA, but is not production ready. > The example is very simple: the annotator loads a grammar that emit a > Classification annotation if a Token has text "good". > Here's the grammar: > > package it.celi.uima.drool; > > import org.uimafit.examples.type.Token; > import it.celi.uima.type.Classification; > > global org.apache.log4j.Logger log > > global org.apache.uima.jcas.JCas jCas > > rule "simple classifier" > when > $token:Token(coveredText == "good") > then > Classification cl = new Classification(jCas); > cl.setBegin($token.getBegin()); > cl.setEnd($token.getEnd()); > cl.setLabel("positive"); > cl.addToIndexes(); > if(log.isDebugEnabled()) log.debug("token:: " + > $token.getCoveredText()); > end > > Regards, > RF > > -- > Roberto Franchini > The impossible is inevitable. > Be smart: http://goo.gl/LqgRY > http://www.celi.it > http://www.blogmeter.it > Tel +39.011.562.71.15 > jabber:ro.franchini@gmail.com skype:ro.franchini > --f46d0444038499872504c22cc18c--