sorting annotations by offset

14 views
Skip to first unread message

Philip Ogren

unread,
May 2, 2013, 11:57:24 AM5/2/13
to uimafi...@googlegroups.com
Is there an easy way to sort a list of annotations by their begin and end offsets?  I'm getting back a list of annotations from JCasUtil.selectCovered that are not in order - presumably because they are not being added to the CAS in order.  It seems that uimaFIT might provide a comparator or a sort method that is readily available, but I am having troubles finding it if it exists.  If not, then it might make sense to add a sort method to JCasUtil.  

Thanks,
Philip

Philip Ogren

unread,
May 2, 2013, 12:08:11 PM5/2/13
to uimafi...@googlegroups.com
I just noticed that my list of annotations actually is sorted!  Sorry....
Reply all
Reply to author
Forward
0 new messages