uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kl├╝gl <peter.klu...@averbis.com>
Subject Re: uima ruta to edit src
Date Fri, 05 Feb 2016 15:41:21 GMT

what do you mean exactly by "work on eclipse while displaying output"?
You want to use the regex in a scanner/lexer/seeder in an analysis
engine in a Ruta project in the Ruta Workbench?

Here's how to modify the SeedLexer implementation:
- modify/extend SeedLexer.flex with your regexp
- download jflex 1.4.3 from http://jflex.de/
- start the gui of jflex and generate the java class for SeedLexer.flex
- build the complete ruta reactor project

Then, it depends on what you want to do. You could either start the
Workbench from within Eclipse or you can generate a new update site for
installing the changed plugins in your eclipse.

However, I assume that there is a much easier way to achieve your goal.
Do you want to describe your use case?
You could maybe just write a simple regexp ruta rule like

"<+" -> TAG;



Am 05.02.2016 um 12:47 schrieb AmyJacksonKatrina:
> i just want add some regex rules in seed.flex files which should work on 
> eclipse while displaying output. How to make this to run. give me a 
> detailed explanation. i just use the code below to add an annotaion as TAG 
> in seed.flex file.
> {\<}+ {
>                 TAG t = new TAG(cas);
>                 t.setBegin(yychar);
>                 t.setEnd(yychar + yytext().length());
>        }

View raw message