uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pklu...@apache.org
Subject svn commit: r1478848 - in /uima/sandbox/ruta/trunk/example-projects/ExtensionsExample: descriptor/uima/ruta/example/ descriptor/uima/textmarker/ input/ script/uima/ruta/example/
Date Fri, 03 May 2013 15:45:51 GMT
Author: pkluegl
Date: Fri May  3 15:45:50 2013
New Revision: 1478848

URL: http://svn.apache.org/r1478848
Log:
UIMA-2834
- added example for ExampleTypeFunction

Added:
    uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionEngine.xml
    uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionTypeSystem.xml
    uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt
      - copied, changed from r1478341, uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt
    uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/script/uima/ruta/example/ExampleTypeFunction.ruta
Removed:
    uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/textmarker/
Modified:
    uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleActionEngine.xml
    uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleConditionEngine.xml

Modified: uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleActionEngine.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleActionEngine.xml?rev=1478848&r1=1478847&r2=1478848&view=diff
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleActionEngine.xml
(original)
+++ uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleActionEngine.xml
Fri May  3 15:45:50 2013
@@ -197,7 +197,7 @@
                 <name>scriptPaths</name>
                 <value>
                     <array>
-                        <string>D:/work/runtime-EclipseApplication/ExtensionsExample/script</string>
+                        <string>D:/work/workspace-textmarker/ExtensionsExample/script</string>
                     </array>
                 </value>
             </nameValuePair>
@@ -205,7 +205,7 @@
                 <name>descriptorPaths</name>
                 <value>
                     <array>
-                        <string>D:/work/runtime-EclipseApplication/ExtensionsExample/descriptor</string>
+                        <string>D:/work/workspace-textmarker/ExtensionsExample/descriptor</string>
                     </array>
                 </value>
             </nameValuePair>
@@ -213,7 +213,7 @@
                 <name>resourcePaths</name>
                 <value>
                     <array>
-                        <string>D:\work\runtime-EclipseApplication\ExtensionsExample\resources</string>
+                        <string>D:\work\workspace-textmarker\ExtensionsExample\resources</string>
                     </array>
                 </value>
             </nameValuePair>

Modified: uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleConditionEngine.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleConditionEngine.xml?rev=1478848&r1=1478847&r2=1478848&view=diff
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleConditionEngine.xml
(original)
+++ uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleConditionEngine.xml
Fri May  3 15:45:50 2013
@@ -197,7 +197,7 @@
                 <name>scriptPaths</name>
                 <value>
                     <array>
-                        <string>D:/work/runtime-EclipseApplication/ExtensionsExample/script</string>
+                        <string>D:/work/workspace-textmarker/ExtensionsExample/script</string>
                     </array>
                 </value>
             </nameValuePair>
@@ -205,7 +205,7 @@
                 <name>descriptorPaths</name>
                 <value>
                     <array>
-                        <string>D:/work/runtime-EclipseApplication/ExtensionsExample/descriptor</string>
+                        <string>D:/work/workspace-textmarker/ExtensionsExample/descriptor</string>
                     </array>
                 </value>
             </nameValuePair>
@@ -213,7 +213,7 @@
                 <name>resourcePaths</name>
                 <value>
                     <array>
-                        <string>D:\work\runtime-EclipseApplication\ExtensionsExample\resources</string>
+                        <string>D:\work\workspace-textmarker\ExtensionsExample\resources</string>
                     </array>
                 </value>
             </nameValuePair>

Added: uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionEngine.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionEngine.xml?rev=1478848&view=auto
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionEngine.xml
(added)
+++ uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionEngine.xml
Fri May  3 15:45:50 2013
@@ -0,0 +1,307 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+    <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+    <primitive>true</primitive>
+    <annotatorImplementationName>org.apache.uima.ruta.engine.RutaEngine</annotatorImplementationName>
+    <analysisEngineMetaData>
+        <name>BasicEngine</name>
+        <description/>
+        <version>1.0</version>
+        <vendor/>
+        <configurationParameters searchStrategy="language_fallback">
+            <configurationParameter>
+                <name>seeders</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>debug</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalScripts</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>profile</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>debugWithMatches</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>statistics</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalEngines</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalExtensions</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>debugOnlyFor</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>scriptEncoding</name>
+                <type>String</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>additionalEngineLoaders</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>resourcePaths</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>defaultFilteredTypes</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>mainScript</name>
+                <type>String</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>scriptPaths</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>descriptorPaths</name>
+                <type>String</type>
+                <multiValued>true</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>removeBasics</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>dynamicAnchoring</name>
+                <description>Activates dynamic achoring (possible speed up).</description>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>lowMemoryProfile</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>createdBy</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+            <configurationParameter>
+                <name>simpleGreedyForComposed</name>
+                <type>Boolean</type>
+                <multiValued>false</multiValued>
+                <mandatory>false</mandatory>
+            </configurationParameter>
+        </configurationParameters>
+        <configurationParameterSettings>
+            <nameValuePair>
+                <name>debug</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>profile</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>debugWithMatches</name>
+                <value>
+                    <boolean>true</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>defaultFilteredTypes</name>
+                <value>
+                    <array>
+                        <string>org.apache.uima.ruta.type.SPACE</string>
+                        <string>org.apache.uima.ruta.type.NBSP</string>
+                        <string>org.apache.uima.ruta.type.BREAK</string>
+                        <string>org.apache.uima.ruta.type.MARKUP</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>removeBasics</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>seeders</name>
+                <value>
+                    <array>
+                        <string>org.apache.uima.ruta.seed.DefaultSeeder</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>createdBy</name>
+                <value>
+                    <boolean>false</boolean>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>mainScript</name>
+                <value>
+                    <string>uima.ruta.example.ExampleTypeFunction</string>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>scriptPaths</name>
+                <value>
+                    <array>
+                        <string>D:/work/workspace-textmarker/ExtensionsExample/script</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>descriptorPaths</name>
+                <value>
+                    <array>
+                        <string>D:/work/workspace-textmarker/ExtensionsExample/descriptor</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>resourcePaths</name>
+                <value>
+                    <array>
+                        <string>D:\work\workspace-textmarker\ExtensionsExample\resources</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalScripts</name>
+                <value>
+                    <array/>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalEngines</name>
+                <value>
+                    <array/>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalExtensions</name>
+                <value>
+                    <array>
+                        <string>org.apache.uima.ruta.example.extensions.ExampleConditionExtension</string>
+                        <string>org.apache.uima.ruta.example.extensions.ExampleActionExtension</string>
+                        <string>org.apache.uima.ruta.example.extensions.ExampleTypeFunctionExtension</string>
+                    </array>
+                </value>
+            </nameValuePair>
+            <nameValuePair>
+                <name>additionalEngineLoaders</name>
+                <value>
+                    <array/>
+                </value>
+            </nameValuePair>
+        </configurationParameterSettings>
+        <typeSystemDescription>
+            <name>uima.ruta.example.ExampleTypeFunctionTypeSystem</name>
+            <imports>
+                <import location="../../../BasicTypeSystem.xml"/>
+            </imports>
+            <types>
+                <typeDescription>
+                    <name>uima.ruta.example.ExampleTypeFunction.T1</name>
+                    <description>Type defined in uima.ruta.example.ExampleTypeFunction</description>
+                    <supertypeName>uima.tcas.Annotation</supertypeName>
+                </typeDescription>
+                <typeDescription>
+                    <name>uima.ruta.example.ExampleTypeFunction.T2</name>
+                    <description>Type defined in uima.ruta.example.ExampleTypeFunction</description>
+                    <supertypeName>uima.tcas.Annotation</supertypeName>
+                </typeDescription>
+                <typeDescription>
+                    <name>uima.ruta.example.ExampleTypeFunction.T3</name>
+                    <description>Type defined in uima.ruta.example.ExampleTypeFunction</description>
+                    <supertypeName>uima.tcas.Annotation</supertypeName>
+                </typeDescription>
+            </types>
+        </typeSystemDescription>
+        <typePriorities>
+            <priorityList>
+                <type>org.apache.uima.ruta.type.RutaFrame</type>
+                <type>uima.tcas.Annotation</type>
+                <type>org.apache.uima.ruta.type.RutaBasic</type>
+            </priorityList>
+        </typePriorities>
+        <fsIndexCollection/>
+        <capabilities>
+            <capability>
+                <inputs/>
+                <outputs/>
+                <languagesSupported/>
+            </capability>
+            <capability>
+                <inputs>
+                    <type>uima.ruta.example.ExampleTypeFunction.T1</type>
+                    <type>uima.ruta.example.ExampleTypeFunction.T2</type>
+                    <type>uima.ruta.example.ExampleTypeFunction.T3</type>
+                </inputs>
+                <outputs>
+                    <type>uima.ruta.example.ExampleTypeFunction.T1</type>
+                    <type>uima.ruta.example.ExampleTypeFunction.T2</type>
+                    <type>uima.ruta.example.ExampleTypeFunction.T3</type>
+                </outputs>
+                <languagesSupported/>
+            </capability>
+        </capabilities>
+        <operationalProperties>
+            <modifiesCas>true</modifiesCas>
+            <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+            <outputsNewCASes>true</outputsNewCASes>
+        </operationalProperties>
+    </analysisEngineMetaData>
+    <resourceManagerConfiguration/>
+</analysisEngineDescription>

Added: uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionTypeSystem.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionTypeSystem.xml?rev=1478848&view=auto
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionTypeSystem.xml
(added)
+++ uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/descriptor/uima/ruta/example/ExampleTypeFunctionTypeSystem.xml
Fri May  3 15:45:50 2013
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
+    <name>uima.ruta.example.ExampleTypeFunctionTypeSystem</name>
+    <imports>
+        <import location="../../../BasicTypeSystem.xml"/>
+    </imports>
+    <types>
+        <typeDescription>
+            <name>uima.ruta.example.ExampleTypeFunction.T1</name>
+            <description>Type defined in uima.ruta.example.ExampleTypeFunction</description>
+            <supertypeName>uima.tcas.Annotation</supertypeName>
+        </typeDescription>
+        <typeDescription>
+            <name>uima.ruta.example.ExampleTypeFunction.T2</name>
+            <description>Type defined in uima.ruta.example.ExampleTypeFunction</description>
+            <supertypeName>uima.tcas.Annotation</supertypeName>
+        </typeDescription>
+        <typeDescription>
+            <name>uima.ruta.example.ExampleTypeFunction.T3</name>
+            <description>Type defined in uima.ruta.example.ExampleTypeFunction</description>
+            <supertypeName>uima.tcas.Annotation</supertypeName>
+        </typeDescription>
+    </types>
+</typeSystemDescription>

Copied: uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt (from r1478341,
uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt)
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt?p2=uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt&p1=uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt&r1=1478341&r2=1478848&rev=1478848&view=diff
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt (original)
+++ uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/input/test.txt Fri May  3 15:45:50
2013
@@ -1,2 +1,4 @@
 This is a test.
-1900/12/24 and 24.4.1982
\ No newline at end of file
+1900/12/24 and 24.4.1982
+CW
+org.apache.uima.ruta.type.NUM
\ No newline at end of file

Added: uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/script/uima/ruta/example/ExampleTypeFunction.ruta
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/script/uima/ruta/example/ExampleTypeFunction.ruta?rev=1478848&view=auto
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/script/uima/ruta/example/ExampleTypeFunction.ruta
(added)
+++ uima/sandbox/ruta/trunk/example-projects/ExtensionsExample/script/uima/ruta/example/ExampleTypeFunction.ruta
Fri May  3 15:45:50 2013
@@ -0,0 +1,18 @@
+PACKAGE uima.ruta.example;
+
+DECLARE T1, T2, T3;
+
+STRING typeString;
+CAP{-> MATCHEDTEXT(typeString), MARK(ExampleTypeFunction(typeString))};
+
+ExampleTypeFunction(typeString){-> MARK(T1)};
+
+(W PERIOD W PERIOD W PERIOD W PERIOD W PERIOD CAP){-> MATCHEDTEXT(typeString), MARK(ExampleTypeFunction(typeString))};
+
+ExampleTypeFunction(typeString){-> MARK(T2)};
+
+
+
+
+
+



Mime
View raw message