blob: 28d0ecdf1c4614fb1e2d1763e480a53972b48e48 [file] [log] [blame]
<?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>org.apache.uima.examples.opennlp.annotator.Parser</annotatorImplementationName>
<analysisEngineMetaData>
<name>OpenNLPParser</name>
<description>Parse the document and create phrasal and clausal annotations over the text. Uses the OpenNLP MaxEnt parser.
This analysis engine takes a parameter called "ParseTagMapping" which maps each parse tag to a syntax annotation type. The parse tags come from the standard Penn Tree Bank phrase and clause tags (produced by the OpenNLP parser), and each syntax annotation type must be defined in the type system and have a corresponding JCas Java class.</description>
<version>1.0</version>
<vendor>The Apache Software Foundation</vendor>
<configurationParameters>
<configurationParameter>
<name>ModelDirectory</name>
<type>String</type>
<multiValued>false</multiValued>
<mandatory>true</mandatory>
</configurationParameter>
<configurationParameter>
<name>UseTagDictionary</name>
<type>Boolean</type>
<multiValued>false</multiValued>
<mandatory>false</mandatory>
</configurationParameter>
<configurationParameter>
<name>CaseSensitiveTagDictionary</name>
<type>Boolean</type>
<multiValued>false</multiValued>
<mandatory>false</mandatory>
</configurationParameter>
<configurationParameter>
<name>BeamSize</name>
<type>Integer</type>
<multiValued>false</multiValued>
<mandatory>false</mandatory>
</configurationParameter>
<configurationParameter>
<name>AdvancePercentage</name>
<type>Float</type>
<multiValued>false</multiValued>
<mandatory>false</mandatory>
</configurationParameter>
<configurationParameter>
<name>ParseTagMappings</name>
<description></description>
<type>String</type>
<multiValued>true</multiValued>
<mandatory>true</mandatory>
</configurationParameter>
</configurationParameters>
<configurationParameterSettings>
<nameValuePair>
<name>ModelDirectory</name>
<value>
<string>C:\opennlp-models-1.3.0\english\parser</string>
</value>
</nameValuePair>
<nameValuePair>
<name>UseTagDictionary</name>
<value>
<boolean>false</boolean>
</value>
</nameValuePair>
<nameValuePair>
<name>CaseSensitiveTagDictionary</name>
<value>
<boolean>false</boolean>
</value>
</nameValuePair>
<nameValuePair>
<name>ParseTagMappings</name>
<value>
<array>
<string>S,org.apache.uima.examples.opennlp.S</string>
<string>SBAR,org.apache.uima.examples.opennlp.SBAR</string>
<string>SBARQ,org.apache.uima.examples.opennlp.SBARQ</string>
<string>SINV,org.apache.uima.examples.opennlp.SINV</string>
<string>SQ,org.apache.uima.examples.opennlp.SQ</string>
<string>ADJP,org.apache.uima.examples.opennlp.ADJP</string>
<string>ADVP,org.apache.uima.examples.opennlp.ADVP</string>
<string>CONJP,org.apache.uima.examples.opennlp.CONJP</string>
<string>FRAG,org.apache.uima.examples.opennlp.FRAG</string>
<string>INTJ,org.apache.uima.examples.opennlp.INTJ</string>
<string>LST,org.apache.uima.examples.opennlp.LST</string>
<string>NAC,org.apache.uima.examples.opennlp.NAC</string>
<string>NP,org.apache.uima.examples.opennlp.NP</string>
<string>NX,org.apache.uima.examples.opennlp.NX</string>
<string>PP,org.apache.uima.examples.opennlp.PP</string>
<string>PRN,org.apache.uima.examples.opennlp.PRNphrase</string>
<string>PRT,org.apache.uima.examples.opennlp.PRT</string>
<string>QP,org.apache.uima.examples.opennlp.QP</string>
<string>RRC,org.apache.uima.examples.opennlp.RRC</string>
<string>UCP,org.apache.uima.examples.opennlp.UCP</string>
<string>VP,org.apache.uima.examples.opennlp.VP</string>
<string>WHADJP,org.apache.uima.examples.opennlp.WHADJP</string>
<string>WHAVP,org.apache.uima.examples.opennlp.WHAVP</string>
<string>WHNP,org.apache.uima.examples.opennlp.WHNP</string>
<string>WHPP,org.apache.uima.examples.opennlp.WHPP</string>
<string>X,org.apache.uima.examples.opennlp.X</string>
</array>
</value>
</nameValuePair>
</configurationParameterSettings>
<typeSystemDescription>
<imports>
<import name="org.apache.uima.examples.opennlp.OpenNLPExampleTypes"/>
</imports>
</typeSystemDescription>
<capabilities>
<capability>
<inputs>
<type>org.apache.uima.examples.opennlp.Sentence</type>
<type>org.apache.uima.examples.opennlp.Token</type>
</inputs>
<outputs>
<type>org.apache.uima.examples.opennlp.SyntaxAnnotation</type>
</outputs>
<languagesSupported/>
</capability>
</capabilities>
<operationalProperties>
<modifiesCas>true</modifiesCas>
<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
</operationalProperties>
</analysisEngineMetaData>
<resourceManagerConfiguration/>
</analysisEngineDescription>