<?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.
 -->

<!-- Descriptor for a primitive TAE that uses the StringMatchAnnotator
     to discover Person Title annotations (Mr., Mrs., Ms., Dr.) in text. -->

<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
<primitive>true</primitive>
<annotatorImplementationName>org.apache.uima.examples.StringMatchAnnotator</annotatorImplementationName>
 
<analysisEngineMetaData>
<name>String Match Annotator</name>
<description>Finds annotations by simple string matching.</description>
<version>1.0</version>
<vendor>The Apache Software Foundation</vendor>
 
<!-- Configuration Parameter Definitions -->
<configurationParameters> 

<configurationParameter>
<name>Substrings</name>
<description>Substrings to match</description>
<type>String</type>
<multiValued>true</multiValued>
<mandatory>true</mandatory>
</configurationParameter>

<configurationParameter>
<name>TypeName</name>
<description>Name of CAS Type to create for the substrings found</description>
<type>String</type>
<multiValued>false</multiValued>
<mandatory>true</mandatory>
</configurationParameter>

<configurationParameter>
<name>ContainingAnnotationTypes</name>
<description>Names of CAS Input Types within which annotations should be created</description>
<type>String</type>
<multiValued>true</multiValued>
<mandatory>false</mandatory>
</configurationParameter>

</configurationParameters>


<!-- Values for the configuration parameters -->
<configurationParameterSettings>

<nameValuePair>
<name>Substrings</name>
<value><array>
<string>Mr.</string>
<string>Mrs.</string>
<string>Ms.</string>
<string>Dr.</string>
</array></value>
</nameValuePair>

<nameValuePair>
<name>TypeName</name>
<value>
<string>PersonTitle</string>
</value>
</nameValuePair>


<nameValuePair>
<name>ContainingAnnotationTypes</name>
<value><array>
<string>PERSON_VOCAB_ANNOT_TYPE</string>
</array></value>
</nameValuePair>

</configurationParameterSettings>

<!-- TypeSystem Definition -->
<typeSystemDescription>
<types>

<typeDescription>
<name>PersonTitle</name>
<supertypeName>uima.tcas.Annotation</supertypeName>
</typeDescription>

<typeDescription>
<name>PERSON_VOCAB_ANNOT_TYPE</name>
<supertypeName>uima.tcas.Annotation</supertypeName>
</typeDescription>

</types>
</typeSystemDescription>

<!-- Capabilities: Inputs and Outputs -->
<capabilities>
<capability>
<inputs>
<type>PERSON_VOCAB_ANNOT_TYPE</type>
</inputs>
<outputs>
<type>PersonTitle</type>
</outputs>
<languagesSupported>
<language>en</language>
</languagesSupported>
</capability>
</capabilities>

</analysisEngineMetaData>
</taeDescription>
