| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Is it possible to use XmiCollectionReader in a CPE? I don't see any way to configure a type system, and without a type system I of course get "unknown type" errors. -Aaron |
|
#2
| |||
| |||
| Hi Aaron, The XmiCollectionReader add no new types, but the CPE type system is created by merging the TS from all CPE components. Do your other CPE components include TS entries for the XmiCas content? Eddie On Wed, Aug 27, 2008 at 7:56 AM, Aaron Kaplan <Aaron.Kaplan-axt8Ybl0NPViK979QBapAg@public.gmane.org>wrote: > Is it possible to use XmiCollectionReader in a CPE? I don't see any way to > configure a type system, and without a type system I of course get "unknown > type" errors. > > -Aaron > > |
|
#3
| |||
| |||
| Eddie Epstein wrote: > The XmiCollectionReader add no new types, but the CPE type system is created > by merging the TS from all CPE components. Do your other CPE components > include TS entries for the XmiCas content? Oh, right, I see. The annotator only knows about some of the types in the XMI file, not all of them. This is directly related to the suggestion I made recently on the issue tracker that the CVD should ignore types it doesn't know about when loading an XMI CAS (use the "lenient" option of the deserialize method). Maybe the same thing would be a good idea for the XmiCollectionReader. In any case, now I see how I can work around the problem. Thanks -Aaron |
|
#4
| |||
| |||
| You could also just modify the one line of code in $UIMA_HOME/examples/src/org/apache/uima/examples/xmi/XmiCollectionReader.java from XmiCasDeserializer.deserialize(inputStream, aCAS); to XmiCasDeserializer.deserialize(inputStream, aCAS, true); Eddie |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.