You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2015/03/07 17:36:52 UTC
svn commit: r1664888 -
/uima/ruta/trunk/ruta-docbook/src/docbook/tools.ruta.language.xml
Author: pkluegl
Date: Sat Mar 7 16:36:52 2015
New Revision: 1664888
URL: http://svn.apache.org/r1664888
Log:
UIMA-4276
- applied patch
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=1664888&r1=1664887&r2=1664888&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 Sat Mar 7 16:36:52 2015
@@ -521,14 +521,14 @@ Martin
listed
names, could be annotated
by using
- <literal>Document{->MARKFAST(FistName, "FirstNames.txt")};</literal>, assuming
+ <literal>Document{->MARKFAST(FirstName, "FirstNames.txt")};</literal>, assuming
an already declared type FirstName. To make this rule
recognizing more first names, add
them to the external list.
You could also use a WORLIST variable to do the same thing as follows:
- <programlisting><![CDATA[WORDLIST FirstNameList = "FirstNames.txt";
+ <programlisting><![CDATA[WORDLIST FirstNameList = 'FirstNames.txt';
DECLARE FirstName;
-Document{->MARKFAST(FistName, FirstNameList)};
+Document{->MARKFAST(FirstName, FirstNameList)};
]]></programlisting>
</para>
<para>
@@ -544,7 +544,7 @@ Document{->MARKFAST(FistName, FirstNameL
n is the amount of entries in the dictionary. To generate a tree word
list, see <xref linkend='section.ugr.tools.ruta.workbench.create_dictionaries' />.
A tree word list is used in the same way as simple word lists,
- for example <literal>Document{->MARKFAST(FistName, "FirstNames.twl")};</literal>.
+ for example <literal>Document{->MARKFAST(FirstName, "FirstNames.twl")};</literal>.
</para>
<para>
A third kind of usable WORDLISTs are <quote>multi tree word list</quote>s.
@@ -568,7 +568,7 @@ Document{->MARKFAST(FistName, FirstNameL
first names and last names in the whole document:
<programlisting><![CDATA[WORDLIST Names = 'Names.mtwl';
Declare FirstName, LastName;
-Document{->TRIE("FirstNames.txt" = FistName, "LastNames.txt" = LastName,
+Document{->TRIE("FirstNames.txt" = FirstName, "LastNames.txt" = LastName,
Names, false, 0, false, 0, "")};]]></programlisting>
</para>
</section>
@@ -596,7 +596,7 @@ Barack Obama; democrats; 2009
]]></programlisting>
To annotate our documents we could use the following set of
rules:
- <programlisting><![CDATA[WORDTABLE presidentsOfUSA = "presidentsOfUSA.csv";
+ <programlisting><![CDATA[WORDTABLE presidentsOfUSA = 'presidentsOfUSA.csv';
DECLARE Annotation PresidentOfUSA(STRING party, INT yearOfInauguration);
Document{->MARKTABLE(PresidentOfUSA, 1, "party" = 2,
"yearOfInauguration" = 3)};]]></programlisting>
@@ -985,4 +985,4 @@ an empty Stringliteral "" or not.
</para>
</section>
</section>
-</chapter>
\ No newline at end of file
+</chapter>