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

<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
<primitive>false</primitive>

<delegateAnalysisEngineSpecifiers>
<delegateAnalysisEngine key="Translator">
<import location="TransAnnotator.xml"/>
</delegateAnalysisEngine>
<delegateAnalysisEngine key="TestAnnotator">
<import location="../TextAnalysisEngineImplTest/TestPrimitiveTAE1.xml"/>
</delegateAnalysisEngine>
</delegateAnalysisEngineSpecifiers>

<analysisEngineMetaData>
<name>Aggregate TAE - Translation followed by Person Title Annotator</name>
<description>Does translation from English to German then runs the TestAnnotator</description>
<version>1.0</version>
<vendor>The Apache Software Foundation</vendor>
<flowConstraints>
<fixedFlow>
<node>Translator</node>
<node>TestAnnotator</node>
</fixedFlow>
</flowConstraints>

<capabilities>
<capability>
<inputs></inputs>
<inputSofas>
<sofaName>SourceDocument</sofaName>
</inputSofas>
<!--outputs>
</outputs-->
<outputSofas>
<sofaName>Translation</sofaName>
</outputSofas>
<languagesSupported>
<language>en</language>
</languagesSupported>
</capability>
</capabilities>

</analysisEngineMetaData>

<!-- Map the SofA name specified as input/output by the delegate AE -->
<!-- to a SofA name assigned by this aggregate.                      -->
<sofaMappings>
	<sofaMapping>
		<componentKey>Translator</componentKey>
		<componentSofaName>EnglishDocument</componentSofaName>
		<aggregateSofaName>SourceDocument</aggregateSofaName>
	</sofaMapping>
	<sofaMapping>
		<componentKey>Translator</componentKey>
		<componentSofaName>GermanDocument</componentSofaName>
		<aggregateSofaName>Translation</aggregateSofaName>
	</sofaMapping>
	<sofaMapping>
		<componentKey>TestAnnotator</componentKey>
		<!-- map to "_InitialView" to specify input CAS for a sofa-unware component -->
		<componentSofaName>_InitialView</componentSofaName>
		<aggregateSofaName>Translation</aggregateSofaName>
	</sofaMapping>
</sofaMappings>
</taeDescription>
