You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2009/05/30 13:13:01 UTC
svn commit: r780236 [6/6] - in /incubator/uima/sandbox/trunk/Lucas: ./ src/
src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/uima/ src/main/java/org/apache/uima/lucas/
src/main/java/org/apache/uima/lucas/co...
Added: incubator/uima/sandbox/trunk/Lucas/src/test/resources/AnnotationTokenStreamTestTypeSystem.xml
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/Lucas/src/test/resources/AnnotationTokenStreamTestTypeSystem.xml?rev=780236&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/Lucas/src/test/resources/AnnotationTokenStreamTestTypeSystem.xml (added)
+++ incubator/uima/sandbox/trunk/Lucas/src/test/resources/AnnotationTokenStreamTestTypeSystem.xml Sat May 30 11:12:58 2009
@@ -0,0 +1,120 @@
+<?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.
+-->
+
+<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
+ <name>TestTypeSystem</name>
+ <description>Type System Definition for the tutorial examples - as of Exercise 1</description>
+ <version>1.0</version>
+ <vendor>The Apache Software Foundation</vendor>
+ <types>
+ <typeDescription>
+ <name>de.julielab.jules.types.test.Annotation1</name>
+ <description/>
+ <supertypeName>uima.tcas.Annotation</supertypeName>
+ <features>
+ <featureDescription>
+ <name>featureString</name>
+ <description/>
+ <rangeTypeName>uima.cas.String</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>featureStringArray</name>
+ <description/>
+ <rangeTypeName>uima.cas.StringArray</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>featureInteger</name>
+ <description/>
+ <rangeTypeName>uima.cas.Integer</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>featureFloat</name>
+ <description/>
+ <rangeTypeName>uima.cas.Float</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>featureStructure1</name>
+ <description/>
+ <rangeTypeName>de.julielab.jules.types.test.FeatureStructure1</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>featureStructures1</name>
+ <description/>
+ <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+ <elementType>de.julielab.jules.types.test.FeatureStructure1</elementType>
+ <multipleReferencesAllowed>true</multipleReferencesAllowed>
+ </featureDescription>
+ </features>
+ </typeDescription>
+ <typeDescription>
+ <name>de.julielab.jules.types.test.FeatureStructure1</name>
+ <description/>
+ <supertypeName>uima.cas.TOP</supertypeName>
+ <features>
+ <featureDescription>
+ <name>feature1</name>
+ <description/>
+ <rangeTypeName>uima.cas.String</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>feature2</name>
+ <description/>
+ <rangeTypeName>uima.cas.String</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>feature3</name>
+ <description/>
+ <rangeTypeName>de.julielab.jules.types.test.FeatureStructure2</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>featureStructures2</name>
+ <description/>
+ <rangeTypeName>uima.cas.FSArray</rangeTypeName>
+ <elementType>de.julielab.jules.types.test.FeatureStructure2</elementType>
+ <multipleReferencesAllowed>true</multipleReferencesAllowed>
+ </featureDescription>
+ </features>
+ </typeDescription>
+ <typeDescription>
+ <name>de.julielab.jules.types.test.FeatureStructure2</name>
+ <description/>
+ <supertypeName>uima.cas.TOP</supertypeName>
+ <features>
+ <featureDescription>
+ <name>feature1</name>
+ <description/>
+ <rangeTypeName>uima.cas.String</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>feature2</name>
+ <description/>
+ <rangeTypeName>uima.cas.String</rangeTypeName>
+ </featureDescription>
+ <featureDescription>
+ <name>feature3</name>
+ <description/>
+ <rangeTypeName>uima.cas.StringArray</rangeTypeName>
+ <multipleReferencesAllowed>true</multipleReferencesAllowed>
+ </featureDescription>
+ </features>
+ </typeDescription>
+ </types>
+</typeSystemDescription>
Propchange: incubator/uima/sandbox/trunk/Lucas/src/test/resources/AnnotationTokenStreamTestTypeSystem.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/uima/sandbox/trunk/Lucas/src/test/resources/hypernyms.txt
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/Lucas/src/test/resources/hypernyms.txt?rev=780236&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/Lucas/src/test/resources/hypernyms.txt (added)
+++ incubator/uima/sandbox/trunk/Lucas/src/test/resources/hypernyms.txt Sat May 30 11:12:58 2009
@@ -0,0 +1,2 @@
+id1=id1111|id111|id11
+id2=id2222|id222|id22
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/Lucas/src/test/resources/hypernyms.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xml
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xml?rev=780236&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xml (added)
+++ incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xml Sat May 30 11:12:58 2009
@@ -0,0 +1,34 @@
+<?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.
+-->
+
+<fields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="lucas.xsd">
+
+ <field name="annotation1" index="yes" termVector="no" stored="yes" merge="true">
+ <annotation type="de.julielab.jules.types.test.Annotation1">
+ <feature name="featureString"/>
+ </annotation>
+ <annotation type="de.julielab.jules.types.test.Annotation1">
+ <feature name="featureInteger" numberFormat="##"/>
+ </annotation>
+ </field>
+
+</fields>
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xsd
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xsd?rev=780236&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xsd (added)
+++ incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xsd Sat May 30 11:12:58 2009
@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+
+<!--
+ 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:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <xs:simpleType name="indexType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="yes"/>
+ <xs:enumeration value="no"/>
+ <xs:enumeration value="no_norms"/>
+ <xs:enumeration value="no_tf"/>
+ <xs:enumeration value="no_norms_tf"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="termVectorType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="no"/>
+ <xs:enumeration value="positions"/>
+ <xs:enumeration value="offsets"/>
+ <xs:enumeration value="positions_offsets"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="storedType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="yes"/>
+ <xs:enumeration value="no"/>
+ <xs:enumeration value="compress"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="tokenizerType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="cas"/>
+ <xs:enumeration value="whitespace"/>
+ <xs:enumeration value="standard"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="positionType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="first"/>
+ <xs:enumeration value="last"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="feature">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="uppercase" type="xs:boolean"/>
+ <xs:attribute name="lowercase" type="xs:boolean"/>
+ <xs:attribute name="numberFormat" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="annotation">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="feature" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="type" type="xs:string"/>
+ <xs:attribute name="sofa" type="xs:string"/>
+ <xs:attribute name="featurePath" type="xs:string"/>
+ <xs:attribute name="concatString" type="xs:string"/>
+ <xs:attribute name="splittString" type="xs:string"/>
+ <xs:attribute name="prefix" type="xs:string"/>
+ <xs:attribute name="uppercase" type="xs:boolean"/>
+ <xs:attribute name="lowercase" type="xs:boolean"/>
+ <xs:attribute name="stopwordRemove" type="xs:boolean"/>
+ <xs:attribute name="position" type="positionType"/>
+ <xs:attribute name="addHypernyms" type="xs:boolean"/>
+ <xs:attribute name="mappingFile" type="xs:string"/>
+ <xs:attribute name="snowballFilter" type="xs:string"/>
+ <xs:attribute name="unique" type="xs:boolean"/>
+ <xs:attribute name="tokenizer" type="tokenizerType"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="field">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="annotation" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="index" type="indexType"/>
+ <xs:attribute name="termVector" type="termVectorType"/>
+ <xs:attribute name="delimiter" type="xs:string"/>
+ <xs:attribute name="stored" type="storedType"/>
+ <xs:attribute name="merge" type="xs:boolean"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="fields">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="field" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/Lucas/src/test/resources/lucas.xsd
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/uima/sandbox/trunk/Lucas/src/test/resources/stopwords.txt
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/Lucas/src/test/resources/stopwords.txt?rev=780236&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/Lucas/src/test/resources/stopwords.txt (added)
+++ incubator/uima/sandbox/trunk/Lucas/src/test/resources/stopwords.txt Sat May 30 11:12:58 2009
@@ -0,0 +1,3 @@
+na
+und
+nu
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/Lucas/src/test/resources/stopwords.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/uima/sandbox/trunk/Lucas/src/test/resources/tokenMapping.txt
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/Lucas/src/test/resources/tokenMapping.txt?rev=780236&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/Lucas/src/test/resources/tokenMapping.txt (added)
+++ incubator/uima/sandbox/trunk/Lucas/src/test/resources/tokenMapping.txt Sat May 30 11:12:58 2009
@@ -0,0 +1,2 @@
+token1=id1
+token2=id2
\ No newline at end of file
Propchange: incubator/uima/sandbox/trunk/Lucas/src/test/resources/tokenMapping.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain