-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from dkpro/bugfix/242-Array-features-are-wrap…
…ped-in-extra-array #242 - Array features are wrapped in extra array
- Loading branch information
Showing
7 changed files
with
199 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
tests/test_files/typesystems/typesystem_with_array_features.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier"> | ||
<types> | ||
<typeDescription> | ||
<name>uima.tcas.DocumentAnnotation</name> | ||
<description/> | ||
<supertypeName>uima.tcas.Annotation</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>language</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.String</rangeTypeName> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>FloatArrayHolder</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>floatArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.FloatArray</rangeTypeName> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>FloatArrayHolderMR</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>floatArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.FloatArray</rangeTypeName> | ||
<multipleReferencesAllowed>true</multipleReferencesAllowed> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>FsArrayHolder</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>fsArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.FSArray</rangeTypeName> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>FsArrayHolderMR</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>fsArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.FSArray</rangeTypeName> | ||
<multipleReferencesAllowed>true</multipleReferencesAllowed> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>IntArrayHolder</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>intArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.IntegerArray</rangeTypeName> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>IntArrayHolderMR</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>intArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.IntegerArray</rangeTypeName> | ||
<multipleReferencesAllowed>true</multipleReferencesAllowed> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>StringArrayHolder</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>stringArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.StringArray</rangeTypeName> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
<typeDescription> | ||
<name>StringArrayHolderMR</name> | ||
<description/> | ||
<supertypeName>uima.cas.TOP</supertypeName> | ||
<features> | ||
<featureDescription> | ||
<name>stringArray</name> | ||
<description/> | ||
<rangeTypeName>uima.cas.StringArray</rangeTypeName> | ||
<multipleReferencesAllowed>true</multipleReferencesAllowed> | ||
</featureDescription> | ||
</features> | ||
</typeDescription> | ||
</types> | ||
</typeSystemDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><xmi:XMI xmlns:noNamespace="http:///uima/noNamespace.ecore" xmlns:tcas="http:///uima/tcas.ecore" xmlns:xmi="http://www.omg.org/XMI" xmlns:cas="http:///uima/cas.ecore" xmi:version="2.0"> | ||
<cas:NULL xmi:id="0"/> | ||
<cas:FSArray xmi:id="4" elements="2 3"/> | ||
<noNamespace:FsArrayHolder xmi:id="6" fsArray="2 3"/> | ||
<noNamespace:FsArrayHolderMR xmi:id="8" fsArray="7"/> | ||
<noNamespace:IntArrayHolder xmi:id="10" intArray="1 2"/> | ||
<noNamespace:IntArrayHolderMR xmi:id="12" intArray="11"/> | ||
<noNamespace:FloatArrayHolder xmi:id="14" floatArray="-1.0 0.0 1.0 NaN -Infinity Infinity 1.4E-45 3.4028235E38"/> | ||
<noNamespace:FloatArrayHolderMR xmi:id="16" floatArray="15"/> | ||
<noNamespace:StringArrayHolder xmi:id="18"> | ||
<stringArray>blah</stringArray> | ||
<stringArray>blub</stringArray> | ||
</noNamespace:StringArrayHolder> | ||
<noNamespace:StringArrayHolderMR xmi:id="20" stringArray="19"/> | ||
<cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView"/> | ||
<tcas:Annotation xmi:id="2" sofa="1" begin="0" end="1"/> | ||
<tcas:Annotation xmi:id="3" sofa="1" begin="1" end="2"/> | ||
<cas:FSArray xmi:id="7" elements="2 3"/> | ||
<cas:IntegerArray xmi:id="11" elements="1 2"/> | ||
<cas:FloatArray xmi:id="15" elements="-1.0 0.0 1.0 NaN -Infinity Infinity 1.4E-45 3.4028235E38"/> | ||
<cas:StringArray xmi:id="19"> | ||
<elements>blah</elements> | ||
<elements>blub</elements> | ||
</cas:StringArray> | ||
<cas:View sofa="1" members="4 6 8 10 12 14 16 18 20"/> | ||
</xmi:XMI> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters