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.

Matched: small small Big<br />

Matched: small Big<br />

Matched: Big<br />

+ Plus Greedy<br />

<strong>The</strong> last match “Big” can be problematic using different types if the rule starts matching with the<br />

first rule element.<br />

2.3.3. + Plus Greedy<br />

<strong>The</strong> Plus Greedy quantifier needs to match on at least one annotation. Please mind that a rule<br />

element after a rule element with a Plus Greedy quantifier matches <strong>and</strong> evaluates on different<br />

conditions. Examples:<br />

Input: 123 456 small small Big<br />

Rule: SW+<br />

Matched: small small<br />

Matched: small<br />

2.3.4. +? Plus Reluctant<br />

<strong>The</strong> Plus Reluctant quantifier has to match on at least one annotation in order to evaluate true, but<br />

stops when the next rule element is able to match on this annotation. Examples:<br />

Input: 123 456 small small Big<br />

Rule: W+? CW<br />

Matched: small small Big<br />

Matched: small Big<br />

2.3.5. ? Question Greedy<br />

<strong>The</strong> Question Greedy quantifier matches optionally on an annotation <strong>and</strong> therefore always<br />

evaluates true. Examples:<br />

Input: 123 456 small Big small Big<br />

Rule: SW CW? SW<br />

Matched: small Big small<br />

2.3.6. ?? Question Reluctant<br />

<strong>The</strong> Question Reluctant quantifier matches optionally on an annotation, if the next rule element<br />

does not match on the same annotation <strong>and</strong> therefore always evaluates true. Examples:<br />

Input: 123 456 small Big small Big<br />

Rule: SW CW?? SW<br />

Matched: small Big small<br />

2.3.7. [x,y] Min Max Greedy<br />

<strong>The</strong> Min Max Greedy quantifier has to match at least x <strong>and</strong> at most y annotations of its rule element<br />

to evaluate true. Examples:<br />

Input: 123 456 small Big small Big<br />

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

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

Saved successfully!

Ooh no, something went wrong!