On Wed, May 21, 2008 at 10:41 AM, Thilo Goetz <[EMAIL PROTECTED]> wrote: > Andrew Borthwick wrote: >> >> Does this provide functionality similar to GATE's JAPE regular expression >> language, i.e. could I use CFE to create new UIMA annotations as the >> result >> of regular expressions over other UIMA annotations? > > I don't think so. > >> >> If not, does anything like this exist for UIMA right now or is anything in >> the works? > > I know of several proprietary ones, but nothing open source. It > would be nice to have something like Jape in UIMA. >
well, I wrote an annotator that uses Jape. The annotator can use Batch grammars and precompiled (with japec) grammars. It works this way: - ther's an annotation mapper that takes a UIMA annotation and maps it to a GATE ones - the JAPE grammars are executed: grammars can update existing annotation and create new one in the GATE's world - tha annotaton mapper update annotations and creates news in the UIMA's world There are some limits: - it's impossible to create (in jape) an annotation that references to another annotation, that's easy to do in uima (pseudo code): Lemma lemma = new Lemma(cas); Token token = new Token(cas); token.setLemma(lemma); - the annotator is packaged as a PEAR that include ALL the GATE jars... - if the annotator is deployed in a web context, only the precompiled grammars are working: I think it's a class loading problem: the pear is loaded by a class loader, the uimaframework in deployed inside a web context that is under another class loader.... and so on.... -performance: the reverse mapping from gate to uima il slow: updating the existing annotation means scanning all the annos in the cas, each feature and check if they're changed (well, if the grammar doesn't update anithing, the updates could be excluded) I want to open the annototor, but at the moment I don't have the permission to do that. But, the better would be to have a JAPE clone, or something better, that uses UIMA directly. I want to take a loook to the BSFAnnotator to understand if it could be usefull. cheers, Roberto -- Roberto Franchini CELI s.r.l. (http://www.celi.it) - C.so Moncalieri 21 - 10131 Torino - ITALY Tel +39-011-6600814 - Fax +39-011-6600687 jabber:[EMAIL PROTECTED] skype:ro.franchini
