Closed GregSilverman closed 4 years ago
The problem is that edu.umn.biomedicus.numbers.NumberType
is not seen as a primitive type even though it extends uima.cas.String
which . We need to check inheritance in is_primitive
.
I merged the fix in master and will maybe releae it this or early next week.
AFAIK strings are the only primitive type which can be extended - and the idea in doing so is that you can define a set of fixed values which the string feature can assume (i.e. defining an "enum"):
<typeDescription>
<name>edu.umn.biomedicus.numbers.NumberType</name>
<description>Automatically generated type from edu.umn.biomedicus.numbers.NumberType</description>
<supertypeName>uima.cas.String</supertypeName>
<allowedValues>
<value>
<string>CARDINAL</string>
<description>Auto generated from enum constant</description>
</value>
<value>
<string>ORDINAL</string>
<description>Auto generated from enum constant</description>
</value>
<value>
<string>FRACTION</string>
<description>Auto generated from enum constant</description>
</value>
<value>
<string>DECIMAL</string>
<description>Auto generated from enum constant</description>
</value>
</allowedValues>
</typeDescription>
Hi, looks like the fix in 0.2.4 worked. Thanks!
Describe the bug
When selecting view, the error
invalid literal for int() with base 10: 'CARDINAL'
is thrown.To Reproduce
Run following:
20132.txt.xmi.zip TypeSystem.xml.zip
Expected behavior Expect to see annotations in view (NB: this had worked in previous versions)
Error message See above.
Please complete the following information:
Version: v0.2.3
OS: MacOS: High Sierra