docs: public static void annotateChunk(CoreMap chunk,
                                     List<CoreLabel> tokens, int tokenStartIndex, int tokenEndIndex,  int totalTokenOffset)
    {
      List<CoreLabel> chunkTokens = new ArrayList<CoreLabel>(tokens.subList(tokenStartIndex, tokenEndIndex));
      chunk.set(CoreAnnotations.CharacterOffsetBeginAnnotation.class,
              chunkTokens.get(0).get(CoreAnnotations.CharacterOffsetBeginAnnotation.class));
      chunk.set(CoreAnnotations.CharacterOffsetEndAnnotation.class,
              chunkTokens.get(chunkTokens.size()-1).get(CoreAnnotations.CharacterOffsetEndAnnotation.class));
      chunk.set(CoreAnnotations.TokensAnnotation.class, chunkTokens);
      chunk.set(CoreAnnotations.TokenBeginAnnotation.class, tokenStartIndex+totalTokenOffset);
      chunk.set(CoreAnnotations.TokenEndAnnotation.class, tokenEndIndex+totalTokenOffset);
    }