RE: Type Priorities

2008-03-14 Thread LeHouillier, Frank D.
To: uima-user@incubator.apache.org Subject: Re: Type Priorities I would guess that many users of the subiterator get tripped up by type priorities at some stage ... I certainly have. It'd be nice if we had a version that just used the bounds of the input annotation, e.g. FSIterator subiterator

Re: Type Priorities

2008-03-14 Thread Thilo Goetz
, type priorities were introduced because of user requirements. They're certainly not an implementation convenience. Quite the opposite, in fact :-) Now if enough users speak up, maybe we can change something. Perhaps by default, type priorities should not be used and you'd need to do something

Re: Type Priorities

2008-03-14 Thread Katrin Tomanek
Hi, I don't like the behavior, either. However, type priorities were introduced because of user requirements. They're certainly not an implementation convenience. Quite the opposite, in fact :-) Now if enough users speak up, maybe we can change something. Perhaps by default, type priorities

Re: Type Priorities

2008-03-14 Thread Katrin Tomanek
Philip Ogren wrote: Katrin, Yes. There is a penalty for iterating through all the annotations of a given type. Imagine you have a token annotation and a document with 10K tokens (not uncommon). We wrote a method that doesn't have this performance penalty and bypasses the type priorities

RE: Type Priorities

2008-03-14 Thread LeHouillier, Frank D.
in the simplest way possible: take all the annotations of a given type with begin offsets greater than x and end offsets less than y and through them in. It isn't the type priorities themselves that felt like they were an implementation convenience but the unexpected behavior. Using the naïve algorithm

Type Priorities

2008-03-13 Thread Katrin Tomanek
Hi, is there a way to programmatically define type priorities? Actually, I am using the subiterator functionality and I need to have type priorities to be set. But I don't want the user of a component to be able to alter the type priorities by modifying the descriptors where type priorities

RE: Type Priorities

2008-03-13 Thread LeHouillier, Frank D.
13, 2008 1:38 PM To: uima-user@incubator.apache.org Subject: Re: Type Priorities Hi Thilo, Actually, I am using the subiterator functionality and I need to have type priorities to be set. But I don't want the user of a component to be able to alter the type priorities by modifying

RE: Type Priorities

2008-03-13 Thread LeHouillier, Frank D.
()) { abbrev.add(currAbbrev); } return abbrev; } -Original Message- From: LeHouillier, Frank D. [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 2:47 PM To: uima-user@incubator.apache.org Subject: RE: Type Priorities I can't see in your example why the using the subiterator doesn't work. You

RE: Type Priorities

2008-03-13 Thread LeHouillier, Frank D.
: Thursday, March 13, 2008 2:54 PM To: uima-user@incubator.apache.org Subject: RE: Type Priorities Typos in my code example fixed: public ArrayListAbbreviation getAbbreviations(Entity entity, JFSIndexRepository index) { AnnotationIndex annotationIndex = index.getAnnotationIndex(Abbreviation.type

Re: Type Priorities

2008-03-13 Thread Philip Ogren
Katrin, Yes. There is a penalty for iterating through all the annotations of a given type. Imagine you have a token annotation and a document with 10K tokens (not uncommon). We wrote a method that doesn't have this performance penalty and bypasses the type priorities. Please see: http