uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eckart de Castilho <...@apache.org>
Subject Macros in Ruta? - How to make long scripts short?
Date Fri, 06 Dec 2013 15:46:51 GMT

assuming I have a Ruta script with recurring statements of the type

 PartOfSpeech{FEATURE("value", "N")

Is it possible to define some kind of macro to replace this long
statement with a short-hand?

 MACRO N := PartOfSpeech{FEATURE("value", "N")}
 MACRO V := PartOfSpeech{FEATURE("value", "V")}

 N{0,2} V 

The closest thing I found in Ruta for such a thing was a Block - but
doesn't seem to do what I want, because I would need to ->CALL it.


-- Richard

View raw message