20.08.2013 Views

Apache UIMA Ruta Guide and Reference - Apache UIMA - The ...

Apache UIMA Ruta Guide and Reference - Apache UIMA - The ...

Apache UIMA Ruta Guide and Reference - Apache UIMA - The ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.7.5. CALL<br />

CALL<br />

<strong>The</strong> CALL action initiates the execution of a different script file or script block. Currently, only<br />

complete script files are supported.<br />

2.7.5.1. Definition:<br />

CALL(DifferentFile)<br />

CALL(Block)<br />

2.7.5.2. Example:<br />

Document{->CALL(NamedEntities)};<br />

Here, a script 'NamedEntities' for named entity recognition is executed.<br />

2.7.6. CLEAR<br />

<strong>The</strong> CLEAR action removes all elements of the given list. If the list was initialized as it was<br />

declared, then it is reset to its initial value.<br />

2.7.6.1. Definition:<br />

CLEAR(ListVariable)<br />

2.7.6.2. Example:<br />

Document{->CLEAR(SomeList)};<br />

This rule clears the list 'SomeList'.<br />

2.7.7. COLOR<br />

<strong>The</strong> COLOR action sets the color of an annotation type in the modified view, if the rule has fired.<br />

<strong>The</strong> background color is passed as the second parameter. <strong>The</strong> font color can be changed by passing<br />

a further color as a third parameter. <strong>The</strong> supported colors are: black, silver, gray, white, maroon,<br />

red, purple, fuchsia, green, lime, olive, yellow, navy, blue, aqua, lightblue, lightgreen, orange, pink,<br />

salmon, cyan, violet, tan, brown, white <strong>and</strong> mediumpurple.<br />

2.7.7.1. Definition:<br />

COLOR(TypeExpression,StringExpression(, StringExpression<br />

(, BooleanExpression)?)?)<br />

2.7.7.2. Example:<br />

Document{->COLOR(Headline, "red", "green", true)};<br />

<strong>UIMA</strong> <strong>Ruta</strong> Version 2.0.1 <strong>Apache</strong> <strong>UIMA</strong> <strong>Ruta</strong> Language 41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!