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?

Thanks,
Jörn

Reply via email to