<?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>false</primitive>

	<delegateAnalysisEngineSpecifiers>
		<delegateAnalysisEngine key="SentenceDetector">
			<import location="SentenceDetector.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="Tokenizer">
			<import location="Tokenizer.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="DateFinder">
			<import location="DateNameFinder.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="PersonFinder">
			<import location="PersonNameFinder.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="OrganizationFinder">
			<import location="OrganizationNameFinder.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="MoneyFinder">
			<import location="MoneyNameFinder.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="LocationFinder">
			<import location="LocationNameFinder.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="PercentageFinder">
			<import location="PercentageNameFinder.xml" />
		</delegateAnalysisEngine>

		<delegateAnalysisEngine key="TimeFinder">
			<import location="TimeNameFinder.xml" />
		</delegateAnalysisEngine>
		
		<delegateAnalysisEngine key="PosTagger">
			<import location="PosTagger.xml" />
		</delegateAnalysisEngine>
		
		<delegateAnalysisEngine key="Chunker">
			<import location="Chunker.xml" />
		</delegateAnalysisEngine>
		
		<delegateAnalysisEngine key="Parser">
			<import location="Parser.xml" />
		</delegateAnalysisEngine>		
	</delegateAnalysisEngineSpecifiers>

	<analysisEngineMetaData>
		<name>OpenNlpTextAnalyzer</name>
		<description />
		<version>${project.version}</version>
		<vendor>Apache Software Foundation</vendor>
		<configurationParameters />
		<configurationParameterSettings />
		<flowConstraints>
			<fixedFlow>
				<node>SentenceDetector</node>
				<node>Tokenizer</node>
				<node>PersonFinder</node>
				<node>OrganizationFinder</node>
				<node>MoneyFinder</node>
				<node>DateFinder</node>
				<node>LocationFinder</node>
				<node>PercentageFinder</node>
				<node>TimeFinder</node>
				<node>PosTagger</node>
				<node>Chunker</node>
				<node>Parser</node>
			</fixedFlow>
		</flowConstraints>
		<capabilities>
			<capability>
				<inputs />
				<outputs />
				<languagesSupported>
					<language>en</language>
				</languagesSupported>
			</capability>
		</capabilities>
		<operationalProperties>
			<modifiesCas>true</modifiesCas>
			<multipleDeploymentAllowed>false</multipleDeploymentAllowed>
			<outputsNewCASes>false</outputsNewCASes>
		</operationalProperties>
	</analysisEngineMetaData>

	<resourceManagerConfiguration>

		<externalResources>
			<externalResource>
				<name>SentenceModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:opennlp-en-ud-ewt-sentence-1.3-2.5.4.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.sentdetect.SentenceModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>TokenModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:opennlp-en-ud-ewt-tokens-1.3-2.5.4.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.tokenize.TokenizerModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>PersonModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-ner-person.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
				</externalResource>

			<externalResource>
				<name>PercentageModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-ner-percentage.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>OrganizationModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-ner-organization.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>MoneyModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-ner-money.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>DateModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-ner-date.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>LocationModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-ner-location.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>TimeModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-ner-time.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.namefind.TokenNameFinderModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>PosModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:opennlp-en-ud-ewt-pos-1.3-2.5.4.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.postag.POSModelResourceImpl</implementationName>
			</externalResource>

			<externalResource>
				<name>ChunkerModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-chunker.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.chunker.ChunkerModelResourceImpl</implementationName>
			</externalResource>
			<externalResource>
				<name>ParserModel</name>
				<fileResourceSpecifier>
					<fileUrl>file:en-parser-chunking.bin</fileUrl>
				</fileResourceSpecifier>
				<implementationName>opennlp.uima.parser.ParserModelResourceImpl</implementationName>
			</externalResource>
		</externalResources>

		<externalResourceBindings>
			<externalResourceBinding>
				<key>SentenceDetector/opennlp.uima.ModelName</key>
				<resourceName>SentenceModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>Tokenizer/opennlp.uima.ModelName</key>
				<resourceName>TokenModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>PersonFinder/opennlp.uima.ModelName</key>
				<resourceName>PersonModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>PercentageFinder/opennlp.uima.ModelName</key>
				<resourceName>PercentageModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>OrganizationFinder/opennlp.uima.ModelName</key>
				<resourceName>OrganizationModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>MoneyFinder/opennlp.uima.ModelName</key>
				<resourceName>MoneyModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>DateFinder/opennlp.uima.ModelName</key>
				<resourceName>DateModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>LocationFinder/opennlp.uima.ModelName</key>
				<resourceName>LocationModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>TimeFinder/opennlp.uima.ModelName</key>
				<resourceName>TimeModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>PosTagger/opennlp.uima.ModelName</key>
				<resourceName>PosModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>Chunker/opennlp.uima.ModelName</key>
				<resourceName>ChunkerModel</resourceName>
			</externalResourceBinding>
			<externalResourceBinding>
				<key>Parser/opennlp.uima.ModelName</key>
				<resourceName>ParserModel</resourceName>
			</externalResourceBinding>			
		</externalResourceBindings>

	</resourceManagerConfiguration>
</analysisEngineDescription>
