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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Resources<br />

• Double variable: A variable that represents a floating-point number.<br />

• Double list variable: A variable that represents a list of floating-point numbers in double<br />

precision.<br />

• String variable: A variable that represents a string.<br />

• String list: A variable that represents a list of strings.<br />

• Boolean variable: A variable that represents a boolean.<br />

• Boolean list variable: A variable that represents a list of booleans.<br />

2.4.2.1. Example:<br />

TYPE newTypeVariable;<br />

TYPELIST newTypeList;<br />

INT newIntegerVariable;<br />

INTLIST newIntList;<br />

FLOAT newFloatVariable;<br />

FLOATLIST newFloatList;<br />

DOUBLE newDoubleVariable;<br />

DOUBLELIST newDoubleList;<br />

STRING newStringVariable;<br />

STRINGLIST newStringList;<br />

BOOLEAN newBooleanVariable;<br />

BOOLEANLIST newBooleanList;<br />

2.4.3. Resources<br />

<strong>The</strong>re are two kinds of resource declarations that make external resources available in the <strong>UIMA</strong><br />

<strong>Ruta</strong> system:<br />

• List: A list represents a normal text file with an entry per line or a compiled tree of a word<br />

list.<br />

• Table: A table represents a comma separated file.<br />

2.4.3.1. Example:<br />

2.4.4. Scripts<br />

WORDLIST listName = 'someWordList.txt';<br />

WORDTABLE tableName = 'someTable.csv';<br />

Additional scripts can be imported <strong>and</strong> reused with the CALL action. <strong>The</strong> types of the imported<br />

rules are also available so that it is not necessary to import the Type System of the additional rule<br />

script.<br />

2.4.4.1. Example:<br />

SCRIPT my.package.AnotherScript; // "AnotherScript.ruta" in the<br />

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

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

Saved successfully!

Ooh no, something went wrong!