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 2012/11/27 18:03:43 UTC

svn commit: r1414264 [2/2] - in /uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test: java/org/apache/uima/textmarker/ java/org/apache/uima/textmarker/condition/ resources/org/apache/uima/textmarker/condition/

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/StartsWithTest.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/StartsWithTest.java?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/StartsWithTest.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/StartsWithTest.java Tue Nov 27 17:03:28 2012
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.condition;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.cas.FSIterator;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.text.AnnotationFS;
+import org.apache.uima.cas.text.AnnotationIndex;
+import org.apache.uima.textmarker.TextMarkerTestUtils;
+import org.junit.Test;
+
+public class StartsWithTest {
+
+  @Test
+  public void test() {
+    String name = this.getClass().getSimpleName();
+    String namespace = this.getClass().getPackage().getName().replaceAll("\\.", "/");
+
+    CAS cas = null;
+    try {
+      cas = TextMarkerTestUtils.process(namespace + "/" + name + ".tm", namespace + "/" + name
+              + ".txt", 50);
+    } catch (Exception e) {
+      e.printStackTrace();
+      assert (false);
+    }
+    Type t = null;
+    AnnotationIndex<AnnotationFS> ai = null;
+    FSIterator<AnnotationFS> iterator = null;
+
+    t = TextMarkerTestUtils.getTestType(cas, 1);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(0, ai.size());
+
+    t = TextMarkerTestUtils.getTestType(cas, 2);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(1, ai.size());
+    iterator = ai.iterator();
+    assertEquals("This", iterator.next().getCoveredText());
+
+    t = TextMarkerTestUtils.getTestType(cas, 3);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(1, ai.size());
+    iterator = ai.iterator();
+    assertEquals("This text starts with \"This\".", iterator.next().getCoveredText());
+    
+    t = TextMarkerTestUtils.getTestType(cas, 4);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(1, ai.size());
+    iterator = ai.iterator();
+    assertEquals("This text starts with \"This\".", iterator.next().getCoveredText());
+  }
+}

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/TotalCountTest.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/TotalCountTest.java?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/TotalCountTest.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/TotalCountTest.java Tue Nov 27 17:03:28 2012
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.condition;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.cas.FSIterator;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.text.AnnotationFS;
+import org.apache.uima.cas.text.AnnotationIndex;
+import org.apache.uima.textmarker.TextMarkerTestUtils;
+import org.junit.Test;
+
+public class TotalCountTest {
+
+  @Test
+  public void test() {
+    String name = this.getClass().getSimpleName();
+    String namespace = this.getClass().getPackage().getName().replaceAll("\\.", "/");
+
+    CAS cas = null;
+    try {
+      cas = TextMarkerTestUtils.process(namespace + "/" + name + ".tm", namespace + "/" + name
+              + ".txt", 50);
+    } catch (Exception e) {
+      e.printStackTrace();
+      assert (false);
+    }
+    Type t = null;
+    AnnotationIndex<AnnotationFS> ai = null;
+    FSIterator<AnnotationFS> iterator = null;
+
+    t = TextMarkerTestUtils.getTestType(cas, 1);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(1, ai.size());
+    iterator = ai.iterator();
+    assertEquals("To count the number of annotations within a given annotation," +
+    		" use the TOTALCOUNT condition.", iterator.next().getCoveredText());
+
+    t = TextMarkerTestUtils.getTestType(cas, 2);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(0, ai.size());
+
+    t = TextMarkerTestUtils.getTestType(cas, 3);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(1, ai.size());
+    iterator = ai.iterator();
+    assertEquals("To count the number of annotations within a given annotation," +
+            " use the TOTALCOUNT condition.", iterator.next().getCoveredText());
+  }
+}

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/VoteTest.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/VoteTest.java?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/VoteTest.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/java/org/apache/uima/textmarker/condition/VoteTest.java Tue Nov 27 17:03:28 2012
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.condition;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.cas.FSIterator;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.text.AnnotationFS;
+import org.apache.uima.cas.text.AnnotationIndex;
+import org.apache.uima.textmarker.TextMarkerTestUtils;
+import org.junit.Test;
+
+public class VoteTest {
+
+  @Test
+  public void test() {
+    String name = this.getClass().getSimpleName();
+    String namespace = this.getClass().getPackage().getName().replaceAll("\\.", "/");
+
+    CAS cas = null;
+    try {
+      cas = TextMarkerTestUtils.process(namespace + "/" + name + ".tm", namespace + "/" + name
+              + ".txt", 50);
+    } catch (Exception e) {
+      e.printStackTrace();
+      assert (false);
+    }
+    Type t = null;
+    AnnotationIndex<AnnotationFS> ai = null;
+    FSIterator<AnnotationFS> iterator = null;
+
+    t = TextMarkerTestUtils.getTestType(cas, 1);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(1, ai.size());
+    iterator = ai.iterator();
+    assertEquals("Use the VOTE Condition, to compare the number of occurrences" +
+    		" of two different annotations.", iterator.next().getCoveredText());
+
+    t = TextMarkerTestUtils.getTestType(cas, 2);
+    ai = cas.getAnnotationIndex(t);
+    assertEquals(0, ai.size());
+  }
+}

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,11 @@
+PACKAGE org.apache.uima;
+
+TYPELIST types = {PERIOD, NUM};
+
+DECLARE SentenceStart, SentenceEnd;
+DECLARE T1, T2, T3, T4;
+
+PERIOD{-> MARK(T1)};
+W{AFTER(PERIOD) -> MARK(T2)};
+W{AFTER(types) -> MARK(T3)};
+W{AFTER({PERIOD, NUM}) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AfterTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,2 @@
+In this text, every word is marked, that stands after at least 1 dot.
+So every word from here on is marked.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,8 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2, T3, T4, T5;
+
+CW{-> MARK(T3)} W+{-PARTOF(T1) -> MARK(T1,1,2)} PERIOD;
+SW{-> MARK(T3)} W+{-PARTOF(T2), -PARTOF(T1) -> MARK(T2,1,2)} PERIOD;
+W{AND(PARTOF(T1), PARTOF(T3)) -> MARK(T4)};
+W{AND(PARTOF(T2), PARTOF(T3)) -> MARK(T5)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/AndTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,4 @@
+This is a malformed text.
+some sentences do not start with a capital word.
+But others have many of them.
+Like this one that is written to test the AND Condition of TextMarker.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,9 @@
+PACKAGE org.apache.uima;
+
+TYPELIST types = {COMMA, PERIOD};
+
+DECLARE T1, T2, T3;
+
+W+{BEFORE(COMMA), -PARTOF(T1) -> MARK(T1)};
+W+{BEFORE(types), -PARTOF(T2) -> MARK(T2)};
+W+{BEFORE({COMMA, PERIOD}), -PARTOF(T3) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/BeforeTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,2 @@
+To mark everything before a special annotation,
+you need the BEFORE condition of TextMarker.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,8 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2, T3, T4;
+
+ANY+{-PARTOF(PERIOD), -PARTOF(T1) -> MARK(T1)} PERIOD;
+T1{CONTAINS(CW) -> MARK(T2)};
+T1{CONTAINS(CW,2,4) -> MARK(T3)};
+T1{CONTAINS(CW,25,100,true) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContainsTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,3 @@
+A single sentence.
+And here is another one.
+Testing the CONTAINS condition of TextMarker.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,9 @@
+PACKAGE org.apache.uima;
+
+INT var;
+
+DECLARE T1, T2, T3, T4;
+
+ANY+{-PARTOF(PERIOD), -PARTOF(T1) -> MARK(T1)};
+CW{CONTEXTCOUNT(T1,1,2,var) -> MARK(T2)};
+Document{IF((var == 3)) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ContextCountTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,3 @@
+A single sentence.
+And here is another one.
+Testing the CONTEXTCOUNT condition of TextMarker.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,10 @@
+PACKAGE org.apache.uima;
+
+INT var;
+STRINGLIST list = {"A", "B", "A"};
+
+DECLARE T1, T2, T3;
+
+ANY+{-PARTOF(PERIOD), -PARTOF(T1) -> MARK(T1)};
+T1{COUNT(CW,2,5,var), IF((var == 3)) -> MARK(T2)};
+T2{COUNT(list,"A",2,5,var), IF((var == 2)) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/CountTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,3 @@
+A single sentence.
+And here is another one.
+Testing the COUNT condition of TextMarker.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,9 @@
+PACKAGE org.apache.uima;
+
+TYPELIST types = {EXCLAMATION, PERIOD};
+
+DECLARE T1, T2, T3;
+
+ANY+{-PARTOF(PM), -PARTOF(T1) -> MARK(T1,1,2)} PM;
+T1{ENDSWITH(PERIOD) -> MARK(T2)};
+T1{ENDSWITH(types) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/EndsWithTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,3 @@
+A single sentence!
+And here is another one?
+Testing the ENDSWITH condition of TextMarker.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,7 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2;
+
+Document{FEATURE("begin",0) -> MARK(T1)};
+Document{-> SETFEATURE("begin",40)};
+Document{FEATURE("begin",40) -> MARK(T2)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/FeatureTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,2 @@
+What features do these sentences have?
+You can test this with the FEATURE condition.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,11 @@
+PACKAGE org.apache.uima;
+
+BOOLEAN b1 = true;
+BOOLEAN b2 = false;
+INT int1 = 5;
+
+DECLARE T1, T2, T3;
+
+Document{IF(b1) -> MARK(T1)};
+Document{IF(b2) -> MARK(T2)};
+Document{IF((int1 > 3)) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IfTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+Will this text be annotated?
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,8 @@
+PACKAGE org.apache.uima;
+
+WORDLIST list1 = 'InListTestList.txt';
+
+DECLARE T1, T2;
+
+W{INLIST(list1) -> MARK(T1)};
+W{INLIST({"INLIST","and","or"}) -> MARK(T2)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+Testing the INLIST condition of TextMarker.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTestList.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTestList.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTestList.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/InListTestList.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,5 @@
+INLIST
+MARK
+condition
+and
+or
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,9 @@
+PACKAGE org.apache.uima;
+
+TYPELIST list = {PERIOD, COMMA};
+
+DECLARE T1, T2, T3;
+
+PM{IS(COLON) -> MARK(T1)};
+ANY{IS({PERIOD, COMMA}) -> MARK(T2)};
+ANY{IS(list) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/IsTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,4 @@
+1: In this text,
+2: every colon is marked.
+3: The same is done
+4: with all commas and periods.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,6 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2;
+
+ANY+{-PARTOF(PM), -PARTOF(T1)-> MARK(T1,1,2)} PM;
+T1{LAST(EXCLAMATION) -> MARK(T2)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/LastTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,3 @@
+Some different sentences.
+But which of them end with an exclamation mark?
+This we can test with the LAST condition!
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,7 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2, T3;
+
+"MOFN"{-> MARK(T1)};
+"MOFN" "Condition"{-> MARK(T2,1,2)};
+W{MOFN(1,1,PARTOF(T2),CONTAINS(T1)) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/MOfNTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,4 @@
+MOFN Condition
+
+The MOFN condition evaluates true, if the number of given conditions evaluating true
+do not exceed the given interval.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,8 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2, T3, T4;
+
+W{NEAR(COLON,1,2) -> MARK(T1)};
+W{NEAR(COLON,1,5,true) -> MARK(T2)};
+W{NEAR(COLON,1,5,false) -> MARK(T3)};
+W{NEAR(COLON,1,5,false,true) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NearTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,5 @@
+The NEAR test:
+
+the NEAR condition evaluates true, if the actual annotation lies within a given distance
+to another annotation. We can control the search direction wit a boolean parameter.
+Another optional boolean parameter toggles filtering.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,6 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2;
+
+ANY+{-PARTOF(PERIOD), -PARTOF(COLON), -PARTOF(T1)-> MARK(T1)} PERIOD;
+W{-PARTOF(T1) -> MARK(T2)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/NotTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,3 @@
+NOT-Condition:
+
+To negate the meaning of a condition, simply write "-" before it.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,7 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2, T3;
+
+CW W+{-> MARK(T1,1,2)} COLON;
+ANY{INLIST({"OR", "Test"}) -> MARK(T2)};
+W{OR(PARTOF(T1),PARTOF(T2)) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/OrTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,4 @@
+The OR Test:
+
+Use the OR condition to annotate something that has to meet
+at least one out of many conditions.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,13 @@
+PACKAGE org.apache.uima;
+
+INT i1;
+DOUBLE d1;
+BOOLEAN b1;
+STRING s1;
+
+DECLARE T1, T2, T3, T4;
+
+NUM{PARSE(i1) -> MARK(T1)};
+(NUM PM NUM){PARSE(d1) -> MARK(T2)};
+W{PARSE(b1) -> MARK(T3)};
+ANY+{PARSE(s1), -PARTOF(T4), -PARTOF(SEMICOLON) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ParseTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,5 @@
+A Boolean b that is true;
+b = false;
+The Number 42;
+The Double d = 2,1;
+Another Double that is 2.3;
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,12 @@
+PACKAGE org.apache.uima;
+
+TYPELIST types = {COMMA, PERIOD, T5};
+
+DECLARE T1, T2, T3, T4, T5, T6;
+
+CW{-> MARK(T5,1,2)} CW{-> MARK(T6)} PERIOD;
+
+ANY{PARTOFNEQ(T5) -> MARK(T1)};
+(CW CW){PARTOFNEQ(T5) -> MARK(T2)};
+W{PARTOFNEQ(T6) -> MARK(T3)};
+ANY{PARTOFNEQ(types) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfNEQTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+I like Vitamine A.
\ No newline at end of file

Modified: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfTest.tm?rev=1414264&r1=1414263&r2=1414264&view=diff
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfTest.tm (original)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/PartOfTest.tm Tue Nov 27 17:03:28 2012
@@ -3,10 +3,14 @@ PACKAGE org.apache.uima;
 DECLARE WithInitial, Initial;
 DECLARE WithInitial WithInitialEnd;
 
+TYPELIST list = {Initial, WithInitial};
+
 DECLARE T1, T2, T3, T4, T5;
 
 CW{-> MARK(WithInitialEnd,1,2)} CW{-> MARK(Initial)} PERIOD;
 
 ANY{PARTOF(WithInitialEnd) -> MARK(T1)};
 Initial {PARTOF(WithInitial) -> MARK(T2)};
-SW{PARTOF(WithInitialEnd) -> MARK(T3)};
\ No newline at end of file
+SW{PARTOF(WithInitialEnd) -> MARK(T3)};
+ANY{PARTOF({Initial, WithInitial}) -> MARK(T4)};
+ANY{PARTOF(list) -> MARK(T5)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,10 @@
+PACKAGE org.apache.uima;
+
+STRING var = "Test";
+
+DECLARE T1, T2, T3, T4;
+
+Document{REGEXP("^.*$") -> MARK(T1)};
+Document{REGEXP(var, "t.*", true) -> MARK(T2)};
+W{REGEXP("A.*", true) -> MARK(T3)};
+W{REGEXP("A.*", false) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/RegExpTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+Use REGEXP to match annotations on different patterns.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,12 @@
+PACKAGE org.apache.uima;
+
+INT int1;
+
+DECLARE T1, T2, T3, T4;
+
+CW{-> MARKSCORE(10,T1)};
+CW{-> MARKSCORE(20,T1)} CW;
+
+T1{SCORE(5,15) -> MARK(T2)};
+T1{SCORE(16,25) -> MARK(T3)};
+T1{SCORE(26,35,int1), IF((int1 == 30)) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/ScoreTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1,4 @@
+Score Condition:
+
+As some rules mark annotations with different scores (e.g. according to their accuracy),
+it is possible to read these scores with the SCORE condition.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,12 @@
+PACKAGE org.apache.uima;
+
+INT counter = 0;
+INTLIST intList = {1,2,3,4,5};
+STRINGLIST stringList = {"a","b","c","d","e"};
+
+DECLARE T1, T2, T3, T4;
+
+"SIZE"{SIZE(intList) -> MARK(T1)};
+"SIZE"{SIZE(intList,4,10) -> MARK(T2)};
+"SIZE"{SIZE(intList,6,10) -> MARK(T3)};
+"SIZE"{SIZE(stringList,5,10,counter) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/SizeTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+Use SIZE to count the numbers of list entries.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,10 @@
+PACKAGE org.apache.uima;
+
+TYPELIST types = {SW, CW};
+
+DECLARE T1, T2, T3, T4;
+
+SW{STARTSWITH(Document) -> MARK(T1)};
+CW{STARTSWITH(Document) -> MARK(T2)};
+Document{STARTSWITH(types) -> MARK(T3)};
+Document{STARTSWITH({SW, CW}) -> MARK(T4)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/StartsWithTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+This text starts with "This".
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,12 @@
+PACKAGE org.apache.uima;
+
+INT int1 = 0;
+
+DECLARE T1, T2, T3, T4;
+
+Document{-> RETAINTYPE(SPACE)};
+Document{-> RETAINTYPE(NEWLINE)};
+
+Document{TOTALCOUNT(CW) -> MARK(T1)};
+Document{TOTALCOUNT(SPACE,1,5) -> MARK(T2)};
+Document{TOTALCOUNT(PM,1,10,int1), IF((int1 == 2)) -> MARK(T3)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/TotalCountTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+To count the number of annotations within a given annotation, use the TOTALCOUNT condition.
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.tm
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.tm?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.tm (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.tm Tue Nov 27 17:03:28 2012
@@ -0,0 +1,6 @@
+PACKAGE org.apache.uima;
+
+DECLARE T1, T2, T3;
+
+Document{VOTE(SW,CW) -> MARK(T1)};
+Document{VOTE(PM,CW) -> MARK(T2)};
\ No newline at end of file

Added: uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.txt
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.txt?rev=1414264&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.txt (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-textmarker/src/test/resources/org/apache/uima/textmarker/condition/VoteTest.txt Tue Nov 27 17:03:28 2012
@@ -0,0 +1 @@
+Use the VOTE Condition, to compare the number of occurrences of two different annotations.
\ No newline at end of file