uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject Iterate over annotations with multiple types
Date Wed, 07 Sep 2011 12:27:30 GMT
Hello all,

what is the best way to iterate over annotations which have
different types?

I have documents which usually have to following structure:

One Headline Annotation
A couple of Sentence Annotations
A Sub-Headline Annotation
A couple of Sentence Annotations

Now I would like to iterate over the annotations above in the
order they occur.

In my current implementation I do the following:
- Retrieve all the annotations
- Put them in a List
- Sort the list
- Iterate over the annotations in the list

Is there a better way to do this?


View raw message