uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: CasIOUtils class - some meta-questions
Date Thu, 04 Aug 2016 22:07:48 GMT
fixed in rework just committed - it now uses the core implementation. -M

On 8/4/2016 10:22 AM, Marshall Schor wrote:
> bug in how type systems are loaded:
> After you get the type system, you need to install it into the CAS, replacing
> that CAS's type system.
> You do this using the bit of code you see in CASImpl reinit method (taking
> CASCompleteSerializer argument, line 1264-66).
> The key parts here are setting the cas's svd.casMetadata (which holds the main
> ref to the TS), and then calling commitTypeSystem() - a method in the CASImpl,
> which does the commit.
> --------------------
> If you load a new type system, it's somewhat likely, that any existing index
> definition specification (which includes references to the types and features)
> will be invalid.  This is why the serialization and loading always loads these
> together.  I think that is the "safe" thing to do here, also.
> -Marshall

View raw message