Author: pkluegl
Date: Tue Sep 17 12:12:22 2013
New Revision: 1523999

URL: http://svn.apache.org/r1523999
Log:
UIMA-3241
- added note about type priorities in readme file

Modified:
    uima/sandbox/ruta/trunk/README

Modified: uima/sandbox/ruta/trunk/README
URL: 
http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/README?rev=1523999&r1=1523998&r2=1523999&view=diff
==============================================================================
--- uima/sandbox/ruta/trunk/README (original)
+++ uima/sandbox/ruta/trunk/README Tue Sep 17 12:12:22 2013
@@ -25,6 +25,16 @@ a command for updating old projects. Ple
 
 -------------------------------------
 
+The UIMA Ruta analysis engine requires type priorities for the correct 
execution of rules. 
+If a CAS is created using the CASCreationUtils, please provide the type 
priorities, e.g., by:
+
+    URL tpUrl = 
this.getClass().getResource("/org/apache/uima/ruta/engine/TypePriorities.xml");
+    TypePriorities typePriorities = 
UIMAFramework.getXMLParser().parseTypePriorities(
+        new XMLInputSource(tpUrl));
+    CAS cas = CasCreationUtils.createCas(descriptor, typePriorities, new 
FsIndexDescription[0]);
+
+-------------------------------------
+
 If you use the uimaFIT JCasGenPomFriendly in Maven and want to use UIMA Ruta 
 as a standalone annotator you have to exclude the generated UIMA Ruta basic 
 type files from the build, e.g., by adding:


Reply via email to