Haven't thought about this enough, yet.

I'll just note here for the record that there exist actions a user can take
which can cause "hidden" add to indexes.  Example, a user modifies a feature,
and it turns out there's an index defined for the pipeline which is using this
as an index key.  If the FS is in the indexes, UIMA will automatically remove
the FS from the indexes, do the modification, and then add back the FS.

-M


On 11/13/2017 2:38 PM, Richard Eckart de Castilho wrote:
> Hi all,
>
> I am wondering if it would be feasible to add some "addToIndex" hooks to UIMA 
> which would be called whenever a FS is added to indexes.
>
> Why?
>
> There may be conventions on the type system and feature values that cannot be 
> expressed simply via the type system definition. For example, in DKPro Core, 
> there is a convention that the begin/end of a Dependency annotation must 
> match the begin/end of the Token that is referred to by the "dependent" 
> feature. There are a number of additional conventions like these.
>
> It would probably be possible to use customized JCas classes to check for 
> such conventions, but that of course would fail if the feature structures are 
> created/manipulated via the CAS API. Also, not everybody is fond of 
> customized (i.e. not auto-generated) JCas classes.
>
> Has anybody already through of supporting such "consistency checks" at the 
> CAS level?
>
> How are you ensuring consistent information in your CASes?
>
> Cheers,
>
> -- Richard

Reply via email to