Author: pkluegl Date: Fri Jun 6 15:26:03 2014 New Revision: 1600919 URL: http://svn.apache.org/r1600919 Log: UIMA-3833 - added documentation
Modified: uima/ruta/trunk/ruta-docbook/src/docbook/tools.ruta.language.xml Modified: uima/ruta/trunk/ruta-docbook/src/docbook/tools.ruta.language.xml URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-docbook/src/docbook/tools.ruta.language.xml?rev=1600919&r1=1600918&r2=1600919&view=diff ============================================================================== --- uima/ruta/trunk/ruta-docbook/src/docbook/tools.ruta.language.xml (original) +++ uima/ruta/trunk/ruta-docbook/src/docbook/tools.ruta.language.xml Fri Jun 6 15:26:03 2014 @@ -672,6 +672,24 @@ FeatureAssignment -> "(" StringExpressio </para> </section> </section> + <section id="ugr.tools.ruta.language.extensions.core-ext.onlyonce"> + <title>ONLYONCE</title> + <para> + Rules within this block construct will stop after the first succesful match. + The following example provides an overview of the syntax: + </para> + <programlisting><![CDATA[ONLYONCE Document{}{ + CW{-> FirstCW}; + NUM+{-> FirstNumList}; +}]]></programlisting> + <para> + The block contains two rules. + The first rule will annotate the first capitalized word of the document with the type FirstCW. + All further possible matches will be skipped. + The second rule will annotate the first sequence of numbers with the type FirstNumList. + The greedy behavior of the quantifiers is not changed by the ONLYONCE block. + </para> + </section> <section id="ugr.tools.ruta.language.extensions.new"> <title>Adding new Language Elements</title> <para>