opennlp-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1215078 - in /incubator/opennlp/trunk/opennlp-uima: ./ src/test/ src/test/java/ src/test/java/opennlp/ src/test/java/opennlp/uima/ src/test/resources/ src/test/resources/test-descriptors/
Date Fri, 16 Dec 2011 10:00:57 GMT
Author: joern
Date: Fri Dec 16 10:00:56 2011
New Revision: 1215078

URL: http://svn.apache.org/viewvc?rev=1215078&view=rev
Log:
OPENNLP-385 Added code to test annotator instantiation. Thanks to Tommaso Teofili for providing a patch.

Added:
    incubator/opennlp/trunk/opennlp-uima/src/test/
    incubator/opennlp/trunk/opennlp-uima/src/test/java/
    incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/
    incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/uima/
    incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/uima/AnnotatorsInitializationTest.java   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Chunker.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/DateNameFinder.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/LocationNameFinder.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/MoneyNameFinder.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/OrganizationNameFinder.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PercentageNameFinder.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PersonNameFinder.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PosTagger.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/SentenceDetector.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TimeNameFinder.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Tokenizer.xml   (with props)
    incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TypeSystem.xml   (with props)
Modified:
    incubator/opennlp/trunk/opennlp-uima/pom.xml

Modified: incubator/opennlp/trunk/opennlp-uima/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/pom.xml?rev=1215078&r1=1215077&r2=1215078&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/pom.xml (original)
+++ incubator/opennlp/trunk/opennlp-uima/pom.xml Fri Dec 16 10:00:56 2011
@@ -62,6 +62,12 @@
 			<version>2.3.1</version>
 			<scope>provided</scope>
 		</dependency>
+
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<scope>test</scope>
+		</dependency>
 	</dependencies>
 
 	<build>
@@ -84,26 +90,14 @@
 					</execution>
 				</executions>
 			</plugin>
-
-			<!-- plugin>
-				<artifactId>maven-antrun-plugin</artifactId>
-				<version>1.3</version>
-				<executions>
-					<execution>
-						<phase>package</phase>
-						<configuration>
-							<tasks>
-								<ant antfile="${basedir}/createPear.xml">
-									<target name="createPear" />
-								</ant>
-							</tasks>
-						</configuration>
-						<goals>
-							<goal>run</goal>
-						</goals>
-					</execution>
-				</executions>
-			</plugin -->
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<configuration>
+          <skipTests>true</skipTests>
+					<argLine>-Xmx512m</argLine>
+				</configuration>
+			</plugin>
 		</plugins>
 	</build>
 </project>
\ No newline at end of file

Added: incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/uima/AnnotatorsInitializationTest.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/uima/AnnotatorsInitializationTest.java?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/uima/AnnotatorsInitializationTest.java (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/uima/AnnotatorsInitializationTest.java Fri Dec 16 10:00:56 2011
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreemnets.  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 opennlp.uima;
+
+import org.apache.uima.UIMAFramework;
+import org.apache.uima.analysis_engine.AnalysisEngine;
+import org.apache.uima.cas.CAS;
+import org.apache.uima.pear.util.FileUtil;
+import org.apache.uima.resource.ResourceInitializationException;
+import org.apache.uima.resource.ResourceSpecifier;
+import org.apache.uima.util.InvalidXMLException;
+import org.apache.uima.util.XMLInputSource;
+import org.junit.Test;
+
+import java.io.File;
+import java.io.IOException;
+
+import static org.junit.Assert.fail;
+
+/**
+ * Test for initialization of the opennlp.uima Annotators
+ */
+public class AnnotatorsInitializationTest {
+
+  private static final String PATHNAME = "src/test/resources/test-descriptors/";
+
+  @Test
+  public void testInitializationExecutionAndReconfigure() {
+    File f = new File(PATHNAME);
+    for (String descName : f.list(new FileUtil.ExtFilenameFilter("xml"))) {
+      if (!descName.equals("TypeSystem.xml")) {
+        try {
+          AnalysisEngine ae = produceAE(descName);
+          CAS cas = ae.newCAS();
+          cas.setDocumentText("this is a dummy document text for initialization and reconfiguration");
+          ae.process(cas);
+          ae.reconfigure();
+        } catch (Exception e) {
+          fail(e.getLocalizedMessage() + " for desc " + descName);
+        }
+      }
+    }
+  }
+
+  private AnalysisEngine produceAE(String descName) throws IOException, InvalidXMLException, ResourceInitializationException {
+    File descFile = new File(PATHNAME + descName);
+    XMLInputSource in = new XMLInputSource(descFile);
+    ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(in);
+    return UIMAFramework.produceAnalysisEngine(specifier);
+  }
+}

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/java/opennlp/uima/AnnotatorsInitializationTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Chunker.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Chunker.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Chunker.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Chunker.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+  <primitive>true</primitive>
+  <annotatorImplementationName>opennlp.uima.chunker.Chunker</annotatorImplementationName>
+  <analysisEngineMetaData>
+    <name>Chunker</name>
+    <description></description>
+    <version>1.5.2-incubating</version>
+    <vendor>Apache Software Foundation</vendor>
+    <configurationParameters>
+
+      <configurationParameter>
+        <name>opennlp.uima.SentenceType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+
+      <configurationParameter>
+        <name>opennlp.uima.TokenType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+
+      <configurationParameter>
+        <name>opennlp.uima.POSFeature</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+
+      <configurationParameter>
+        <name>opennlp.uima.ChunkType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+
+      <configurationParameter>
+        <name>opennlp.uima.ChunkTagFeature</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+    </configurationParameters>
+    <configurationParameterSettings>
+
+      <nameValuePair>
+        <name>opennlp.uima.SentenceType</name>
+        <value>
+          <string>opennlp.uima.Sentence</string>
+        </value>
+      </nameValuePair>
+
+      <nameValuePair>
+        <name>opennlp.uima.TokenType</name>
+        <value>
+          <string>opennlp.uima.Token</string>
+        </value>
+      </nameValuePair>
+
+      <nameValuePair>
+        <name>opennlp.uima.POSFeature</name>
+        <value>
+          <string>pos</string>
+        </value>
+      </nameValuePair>
+
+      <nameValuePair>
+        <name>opennlp.uima.ChunkType</name>
+        <value>
+          <string>opennlp.uima.Chunk</string>
+        </value>
+      </nameValuePair>
+
+      <nameValuePair>
+        <name>opennlp.uima.ChunkTagFeature</name>
+        <value>
+          <string>chunkType</string>
+        </value>
+      </nameValuePair>
+    </configurationParameterSettings>
+
+    <typeSystemDescription>
+      <imports>
+        <import location="TypeSystem.xml"/>
+      </imports>
+    </typeSystemDescription>
+
+    <capabilities>
+      <capability>
+        <inputs/>
+        <outputs/>
+        <languagesSupported>
+          <language>en</language>
+        </languagesSupported>
+      </capability>
+    </capabilities>
+  </analysisEngineMetaData>
+
+  <externalResourceDependencies>
+    <externalResourceDependency>
+      <key>opennlp.uima.ModelName</key>
+      <interfaceName>opennlp.uima.chunker.ChunkerModelResource</interfaceName>
+    </externalResourceDependency>
+  </externalResourceDependencies>
+
+  <resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>ChunkerModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-chunker.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.chunker.ChunkerModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>ChunkerModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Chunker.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/DateNameFinder.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/DateNameFinder.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/DateNameFinder.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/DateNameFinder.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+  <primitive>true</primitive>
+  <annotatorImplementationName>opennlp.uima.namefind.NameFinder</annotatorImplementationName>
+  <analysisEngineMetaData>
+    <name>Date Name Finder</name>
+    <description></description>
+    <version>1.5.2-incubating</version>
+    <vendor>Apache Software Foundation</vendor>
+    <configurationParameters>
+
+      <configurationParameter>
+        <name>opennlp.uima.SentenceType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+
+      <configurationParameter>
+        <name>opennlp.uima.TokenType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+
+      <configurationParameter>
+        <name>opennlp.uima.NameType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+    </configurationParameters>
+
+    <configurationParameterSettings>
+
+      <nameValuePair>
+        <name>opennlp.uima.SentenceType</name>
+        <value>
+          <string>uima.tcas.DocumentAnnotation</string>
+        </value>
+      </nameValuePair>
+
+      <nameValuePair>
+        <name>opennlp.uima.TokenType</name>
+        <value>
+          <string>opennlp.uima.Token</string>
+        </value>
+      </nameValuePair>
+
+      <nameValuePair>
+        <name>opennlp.uima.NameType</name>
+        <value>
+          <string>opennlp.uima.Date</string>
+        </value>
+      </nameValuePair>
+    </configurationParameterSettings>
+
+    <typeSystemDescription>
+      <imports>
+        <import location="TypeSystem.xml"/>
+      </imports>
+    </typeSystemDescription>
+
+    <capabilities>
+      <capability>
+        <inputs/>
+        <outputs/>
+        <languagesSupported>
+          <language>en</language>
+        </languagesSupported>
+      </capability>
+    </capabilities>
+  </analysisEngineMetaData>
+
+  <externalResourceDependencies>
+    <externalResourceDependency>
+      <key>opennlp.uima.ModelName</key>
+      <interfaceName>opennlp.uima.namefind.TokenNameFinderModelResource</interfaceName>
+    </externalResourceDependency>
+  </externalResourceDependencies>
+
+  <resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>DateModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-ner-date.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>DateModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/DateNameFinder.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/LocationNameFinder.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/LocationNameFinder.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/LocationNameFinder.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/LocationNameFinder.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.namefind.NameFinder</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>Location Name Finder</name>
+		<description></description>
+		<version>1.5.2-incubating</version>
+		<vendor>Apache Software Foundation</vendor>
+		<configurationParameters>
+
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.NameType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+
+		<configurationParameterSettings>
+
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>uima.tcas.DocumentAnnotation</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.NameType</name>
+				<value>
+					<string>opennlp.uima.Location</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+	</analysisEngineMetaData>
+
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.namefind.TokenNameFinderModelResource</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+	
+	<resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>LocationModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-ner-location.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>LocationModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/LocationNameFinder.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/MoneyNameFinder.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/MoneyNameFinder.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/MoneyNameFinder.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/MoneyNameFinder.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.namefind.NameFinder</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>Money Name Finder</name>
+		<description></description>
+		<version>1.5.2-incubating</version>
+		<vendor>Apache Software Foundation</vendor>
+		<configurationParameters>
+
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.NameType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+
+		<configurationParameterSettings>
+
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>uima.tcas.DocumentAnnotation</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.NameType</name>
+				<value>
+					<string>opennlp.uima.Money</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+	</analysisEngineMetaData>
+	
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.namefind.TokenNameFinderModelResource</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+	
+	<resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>MoneyModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-ner-money.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>MoneyModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/MoneyNameFinder.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/OrganizationNameFinder.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/OrganizationNameFinder.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/OrganizationNameFinder.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/OrganizationNameFinder.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.namefind.NameFinder</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>Organization Name Finder</name>
+		<description></description>
+		<version>1.5.2-incubating</version>
+		<vendor>Apache Software Foundation</vendor>
+		<configurationParameters>
+
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.NameType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+
+		<configurationParameterSettings>
+
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>uima.tcas.DocumentAnnotation</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.NameType</name>
+				<value>
+					<string>opennlp.uima.Organization</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+	</analysisEngineMetaData>
+
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.namefind.TokenNameFinderModelResource</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+	
+	<resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>OrganizationModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-ner-organization.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>OrganizationModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/OrganizationNameFinder.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PercentageNameFinder.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PercentageNameFinder.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PercentageNameFinder.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PercentageNameFinder.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.namefind.NameFinder</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>Percentage Name Finder</name>
+		<description></description>
+		<version>1.5.2-incubating</version>
+		<vendor>Apache Software Foundation</vendor>
+		<configurationParameters>
+
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.NameType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+
+		<configurationParameterSettings>
+
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>uima.tcas.DocumentAnnotation</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.NameType</name>
+				<value>
+					<string>opennlp.uima.Percentage</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+	</analysisEngineMetaData>
+	
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.namefind.TokenNameFinderModelResource</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+	
+	<resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>PercentageModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-ner-percentage.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>PercentageModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PercentageNameFinder.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PersonNameFinder.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PersonNameFinder.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PersonNameFinder.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PersonNameFinder.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.namefind.NameFinder</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>Person Name Finder</name>
+		<description></description>
+		<version>1.5.2-incubating</version>
+		<vendor>Apache Software Foundation</vendor>
+		<configurationParameters>
+
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.NameType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+
+		<configurationParameterSettings>
+
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>uima.tcas.DocumentAnnotation</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.NameType</name>
+				<value>
+					<string>opennlp.uima.Person</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+	</analysisEngineMetaData>
+
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.namefind.TokenNameFinderModelResource</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+	
+	<resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>PersonModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-ner-person.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>PersonModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PersonNameFinder.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PosTagger.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PosTagger.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PosTagger.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PosTagger.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.postag.POSTagger</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>POS Tagger</name>
+		<description></description>
+		<version>1.5.2-incubating</version>
+		<vendor>Apache Software Foundation</vendor>
+		<configurationParameters>
+
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.POSFeature</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+		<configurationParameterSettings>
+
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>opennlp.uima.Sentence</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.POSFeature</name>
+				<value>
+					<string>pos</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+		
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+	</analysisEngineMetaData>
+	
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.postag.POSModelResource</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+	
+	<resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>PosModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-pos-maxent.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.postag.POSModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>PosModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/PosTagger.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/SentenceDetector.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/SentenceDetector.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/SentenceDetector.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/SentenceDetector.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java
+  </frameworkImplementation>
+  <primitive>true</primitive>
+  <annotatorImplementationName>opennlp.uima.sentdetect.SentenceDetector</annotatorImplementationName>
+  <analysisEngineMetaData>
+    <name>Sentence Detector</name>
+    <description></description>
+    <version>1.5.2-incubating</version>
+    <vendor>Apache Software Foundation</vendor>
+    <configurationParameters>
+      <configurationParameter>
+        <name>opennlp.uima.SentenceType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>opennlp.uima.ContainerType</name>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>false</mandatory>
+      </configurationParameter>
+    </configurationParameters>
+
+    <configurationParameterSettings>
+
+      <nameValuePair>
+        <name>opennlp.uima.SentenceType</name>
+        <value>
+          <string>opennlp.uima.Sentence</string>
+        </value>
+      </nameValuePair>
+    </configurationParameterSettings>
+
+    <typeSystemDescription>
+      <imports>
+        <import location="TypeSystem.xml"/>
+      </imports>
+    </typeSystemDescription>
+
+    <capabilities>
+      <capability>
+        <inputs/>
+        <outputs/>
+        <languagesSupported>
+          <language>en</language>
+        </languagesSupported>
+      </capability>
+    </capabilities>
+  </analysisEngineMetaData>
+
+  <externalResourceDependencies>
+    <externalResourceDependency>
+      <key>opennlp.uima.ModelName</key>
+      <interfaceName>opennlp.uima.sentdetect.SentenceModelResource</interfaceName>
+    </externalResourceDependency>
+  </externalResourceDependencies>
+
+  <resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>SentenceModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-sent.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.sentdetect.SentenceModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>SentenceModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/SentenceDetector.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TimeNameFinder.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TimeNameFinder.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TimeNameFinder.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TimeNameFinder.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.namefind.NameFinder</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>Time Name Finder</name>
+		<description></description>
+		<version>1.5.2-incubating</version>
+		<vendor>Apache Software Foundation</vendor>
+
+		<configurationParameters>
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+
+			<configurationParameter>
+				<name>opennlp.uima.NameType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+
+		<configurationParameterSettings>
+
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>uima.tcas.DocumentAnnotation</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+
+			<nameValuePair>
+				<name>opennlp.uima.NameType</name>
+				<value>
+					<string>opennlp.uima.Person</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+	</analysisEngineMetaData>
+
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.namefind.TokenNameFinderModelResource
+			</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+
+  <resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+        <name>TimeModel</name>
+        <fileResourceSpecifier>
+          <fileUrl>file:test-models/en-ner-time.bin</fileUrl>
+        </fileResourceSpecifier>
+        <implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
+      </externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>TimeModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TimeNameFinder.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Tokenizer.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Tokenizer.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Tokenizer.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Tokenizer.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+	<primitive>true</primitive>
+	<annotatorImplementationName>opennlp.uima.tokenize.Tokenizer</annotatorImplementationName>
+	<analysisEngineMetaData>
+		<name>Tokenizer</name>
+		<description></description>
+		<version>${pom.version}</version>
+		<vendor>Apache Software Foundation</vendor>
+		<configurationParameters>
+			<configurationParameter>
+				<name>opennlp.uima.SentenceType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+			
+			<configurationParameter>
+				<name>opennlp.uima.TokenType</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>true</mandatory>
+			</configurationParameter>
+			
+			<configurationParameter>
+				<name>opennlp.uima.tokenizer.IsAlphaNumericOptimization</name>
+				<type>String</type>
+				<multiValued>false</multiValued>
+				<mandatory>false</mandatory>
+			</configurationParameter>
+		</configurationParameters>
+		<configurationParameterSettings>
+			<nameValuePair>
+				<name>opennlp.uima.TokenType</name>
+				<value>
+					<string>opennlp.uima.Token</string>
+				</value>
+			</nameValuePair>
+			<nameValuePair>
+				<name>opennlp.uima.SentenceType</name>
+				<value>
+					<string>uima.tcas.DocumentAnnotation</string>
+				</value>
+			</nameValuePair>
+		</configurationParameterSettings>
+		
+		<typeSystemDescription>
+			<imports>
+				<import location="TypeSystem.xml" />
+			</imports>
+		</typeSystemDescription>
+		
+		<capabilities>
+			<capability>
+				<inputs />
+				<outputs />
+				<languagesSupported>
+					<language>en</language>
+				</languagesSupported>
+			</capability>
+		</capabilities>
+		<operationalProperties>
+			<modifiesCas>true</modifiesCas>
+			<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+		</operationalProperties>
+	</analysisEngineMetaData>
+	
+	<externalResourceDependencies>
+		<externalResourceDependency>
+			<key>opennlp.uima.ModelName</key>
+			<interfaceName>opennlp.uima.tokenize.TokenizerModelResource</interfaceName>
+		</externalResourceDependency>
+	</externalResourceDependencies>
+
+  <resourceManagerConfiguration>
+    <externalResources>
+      <externalResource>
+				<name>TokenModel</name>
+				<fileResourceSpecifier>
+					<fileUrl>file:test-models/en-token.bin</fileUrl>
+				</fileResourceSpecifier>
+				<implementationName>opennlp.uima.tokenize.TokenizerModelResourceImpl</implementationName>
+			</externalResource>
+    </externalResources>
+    <externalResourceBindings>
+      <externalResourceBinding>
+        <key>opennlp.uima.ModelName</key>
+        <resourceName>TokenModel</resourceName>
+      </externalResourceBinding>
+    </externalResourceBindings>
+  </resourceManagerConfiguration>
+</analysisEngineDescription>

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/Tokenizer.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TypeSystem.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TypeSystem.xml?rev=1215078&view=auto
==============================================================================
--- incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TypeSystem.xml (added)
+++ incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TypeSystem.xml Fri Dec 16 10:00:56 2011
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   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.    
+-->
+
+<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
+	<name>OpenNLP TypeSystem</name>
+	<description>
+		This is the default OpenNLP type system. All the sample
+		descriptors reference the types in this type system. To replace it against
+		a custom type system change the mapping in the descriptors to the
+		custom types and reference the custom type system.
+	</description>
+	<version>1.5.2-incubating</version>
+	<vendor>Apache Software Foundation</vendor>
+	<types>
+		<typeDescription>
+			<name>opennlp.uima.Sentence</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+
+		<typeDescription>
+			<name>opennlp.uima.Token</name>
+			<supertypeName>uima.tcas.Annotation
+			</supertypeName>
+			<features>
+				<featureDescription>
+					<name>pos</name>
+					<description>Part of speech</description>
+					<rangeTypeName>uima.cas.String</rangeTypeName>
+				</featureDescription>
+			</features>
+		</typeDescription>
+
+		<typeDescription>
+			<name>opennlp.uima.Chunk</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+			<features>
+				<featureDescription>
+					<name>chunkType</name>
+					<description></description>
+					<rangeTypeName>uima.cas.String</rangeTypeName>
+				</featureDescription>
+			</features>
+		</typeDescription>
+		
+		<typeDescription>
+			<name>opennlp.uima.Person</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+
+		<typeDescription>
+			<name>opennlp.uima.Organization</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+
+		<typeDescription>
+			<name>opennlp.uima.Location</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+
+		<typeDescription>
+			<name>opennlp.uima.Date</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+
+		<typeDescription>
+			<name>opennlp.uima.Time</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+		
+		<typeDescription>
+			<name>opennlp.uima.Money</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+		
+		<typeDescription>
+			<name>opennlp.uima.Percentage</name>
+			<supertypeName>uima.tcas.Annotation</supertypeName>
+		</typeDescription>
+	</types>
+</typeSystemDescription>
\ No newline at end of file

Propchange: incubator/opennlp/trunk/opennlp-uima/src/test/resources/test-descriptors/TypeSystem.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message