You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by mb...@apache.org on 2007/09/11 17:49:38 UTC
svn commit: r574631 - in
/incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc:
RegExAnnotator.xml concept.xsd
Author: mbaessler
Date: Tue Sep 11 08:49:37 2007
New Revision: 574631
URL: http://svn.apache.org/viewvc?rev=574631&view=rev
Log:
UIMA-539
minor spelling and formatting updates
https://issues.apache.org/jira/browse/UIMA-539
Modified:
incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/RegExAnnotator.xml
incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/concept.xsd
Modified: incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/RegExAnnotator.xml
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/RegExAnnotator.xml?rev=574631&r1=574630&r2=574631&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/RegExAnnotator.xml (original)
+++ incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/RegExAnnotator.xml Tue Sep 11 08:49:37 2007
@@ -28,8 +28,8 @@
<configurationParameter>
<name>ProcessAllConceptRules</name>
- <description>If this parameter is true, all rules of a concept are processed. If the parameter is false,
- the rules are processed by confidence (hightest confidence value first) and the processing stops after the frist
+ <description>If this parameter is set to true, all rules of a concept are processed. If this parameter is set to false,
+ the rules are processed by confidence (highest confidence value first) and the processing stops after the first
rule where matches are available.
</description>
<type>Boolean</type>
@@ -98,6 +98,7 @@
<outputsNewCASes>false</outputsNewCASes>
</operationalProperties>
</analysisEngineMetaData>
+
<externalResourceDependencies>
<externalResourceDependency>
<key>RegexConcepts</key>
@@ -106,7 +107,9 @@
<optional>false</optional>
</externalResourceDependency>
</externalResourceDependencies>
+
<resourceManagerConfiguration>
+
<externalResources>
<externalResource>
<name>RegexConceptsFile</name>
@@ -117,6 +120,7 @@
<implementationName>org.apache.uima.annotator.regex.impl.FileResource_impl</implementationName>
</externalResource>
</externalResources>
+
<externalResourceBindings>
<externalResourceBinding>
<key>RegexConcepts</key>
@@ -124,4 +128,5 @@
</externalResourceBinding>
</externalResourceBindings>
</resourceManagerConfiguration>
+
</analysisEngineDescription>
Modified: incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/concept.xsd
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/concept.xsd?rev=574631&r1=574630&r2=574631&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/concept.xsd (original)
+++ incubator/uima/sandbox/trunk/RegularExpressionAnnotator/desc/concept.xsd Tue Sep 11 08:49:37 2007
@@ -1,202 +1,198 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
-<!--
- * 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.
- -->
-
- <xs:element name="conceptSet">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="concept" minOccurs="1" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="concept">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="rules" minOccurs="1" maxOccurs="1" />
- <xs:element ref="createAnnotations" minOccurs="1" maxOccurs="1" />
- </xs:sequence>
- <xs:attribute name="name" type="xs:ID" use="optional" />
- </xs:complexType>
- </xs:element>
-
- <xs:element name="createAnnotations">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="annotation" minOccurs="1" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="rules">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="rule" minOccurs="1" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
-
- <xs:element name="rule">
- <xs:complexType>
- <xs:all>
- <xs:element ref="matchTypeFilter" minOccurs="0" maxOccurs="1" />
- <xs:element ref="updateMatchTypeAnnotation" minOccurs="0" maxOccurs="1" />
- <xs:element ref="ruleExceptions" minOccurs="0" maxOccurs="1" />
- </xs:all>
- <xs:attribute name="regEx" type="xs:string" use="required" />
- <xs:attribute name="matchStrategy" use="required">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="matchFirst" />
- <xs:enumeration value="matchAll" />
- <xs:enumeration value="matchComplete" />
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="matchType" type="xs:string" use="required" />
- <xs:attribute name="ruleId" type="xs:ID" use="optional" />
- <xs:attribute name="confidence" type="xs:decimal" use="optional" />
- </xs:complexType>
- </xs:element>
-
- <xs:element name="matchTypeFilter">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="feature" minOccurs="0" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="ruleExceptions">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="exception" minOccurs="0" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="exception">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute name="matchType" type="xs:string" use="required" />
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="feature">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute name="name" type="xs:string" use="required" />
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="annotation">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="begin" minOccurs="1" maxOccurs="1" />
- <xs:element ref="end" minOccurs="1" maxOccurs="1" />
- <xs:element ref="setFeature" minOccurs="0"
- maxOccurs="unbounded" />
- </xs:sequence>
- <xs:attribute name="id" type="xs:ID" use="required" />
- <xs:attribute name="type" type="xs:string" use="required" />
- </xs:complexType>
- </xs:element>
-
- <xs:element name="updateMatchTypeAnnotation">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="setFeature" minOccurs="0" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="begin">
- <xs:complexType>
- <xs:attribute name="group" use="required">
- <xs:simpleType>
- <xs:restriction base="xs:integer">
- <xs:minInclusive value="0" />
- <xs:maxInclusive value="9" />
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="location" use="optional"
- default="start">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="start" />
- <xs:enumeration value="end" />
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="end">
- <xs:complexType>
- <xs:attribute name="group" use="required">
- <xs:simpleType>
- <xs:restriction base="xs:integer">
- <xs:minInclusive value="0" />
- <xs:maxInclusive value="9" />
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="location" use="optional"
- default="end">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="start" />
- <xs:enumeration value="end" />
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="setFeature">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute name="name" type="xs:string" use="required" />
- <xs:attribute name="type" use="required">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="String" />
- <xs:enumeration value="Integer" />
- <xs:enumeration value="Float" />
- <xs:enumeration value="Reference" />
- <xs:enumeration value="Confidence" />
- <xs:enumeration value="RuleId" />
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
+ <!--
+ * 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.
+ -->
+
+ <xs:element name="conceptSet">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="concept" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="concept">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="rules" minOccurs="1" maxOccurs="1" />
+ <xs:element ref="createAnnotations" minOccurs="1" maxOccurs="1" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:ID" use="optional" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="createAnnotations">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="annotation" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="rules">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="rule" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="rule">
+ <xs:complexType>
+ <xs:all>
+ <xs:element ref="matchTypeFilter" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="updateMatchTypeAnnotation" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="ruleExceptions" minOccurs="0" maxOccurs="1" />
+ </xs:all>
+ <xs:attribute name="regEx" type="xs:string" use="required" />
+ <xs:attribute name="matchStrategy" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="matchFirst" />
+ <xs:enumeration value="matchAll" />
+ <xs:enumeration value="matchComplete" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="matchType" type="xs:string" use="required" />
+ <xs:attribute name="ruleId" type="xs:ID" use="optional" />
+ <xs:attribute name="confidence" type="xs:decimal" use="optional" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="matchTypeFilter">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="feature" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="ruleExceptions">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="exception" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="exception">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="matchType" type="xs:string" use="required" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="feature">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="annotation">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="begin" minOccurs="1" maxOccurs="1" />
+ <xs:element ref="end" minOccurs="1" maxOccurs="1" />
+ <xs:element ref="setFeature" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:ID" use="required" />
+ <xs:attribute name="type" type="xs:string" use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="updateMatchTypeAnnotation">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="setFeature" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="begin">
+ <xs:complexType>
+ <xs:attribute name="group" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:integer">
+ <xs:minInclusive value="0" />
+ <xs:maxInclusive value="9" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="location" use="optional" default="start">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="start" />
+ <xs:enumeration value="end" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="end">
+ <xs:complexType>
+ <xs:attribute name="group" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:integer">
+ <xs:minInclusive value="0" />
+ <xs:maxInclusive value="9" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="location" use="optional" default="end">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="start" />
+ <xs:enumeration value="end" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="setFeature">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required" />
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="String" />
+ <xs:enumeration value="Integer" />
+ <xs:enumeration value="Float" />
+ <xs:enumeration value="Reference" />
+ <xs:enumeration value="Confidence" />
+ <xs:enumeration value="RuleId" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
</xs:schema>