Use groupby for to group annotated texts