code: public static Annotation getAnnotatedChunk(CoreMap annotation, int tokenStartIndex, int tokenEndIndex,
                                               Class tokenChunkKey, Class tokenLabelKey)
    {
      Annotation chunk = getAnnotatedChunk(annotation, tokenStartIndex, tokenEndIndex);
      annotateChunkTokens(chunk, tokenChunkKey, tokenLabelKey);
      return chunk;
    }
docs: Create a new chunk Annotation with basic chunk information
  CharacterOffsetBeginAnnotation - set to CharacterOffsetBeginAnnotation of first token in chunk
  CharacterOffsetEndAnnotation - set to CharacterOffsetEndAnnotation of last token in chunk
  TokensAnnotation - List of tokens in this chunk
  TokenBeginAnnotation - Index of first token in chunk (index in original list of tokens)
  tokenStartIndex + annotation's TokenBeginAnnotation
  TokenEndAnnotation - Index of last token in chunk (index in original list of tokens)
  tokenEndIndex + annotation's TokenBeginAnnotation
  TextAnnotation - String extracted from the origAnnotation using character offset information for this chunk
  @param annotation - Annotation from which to extract the text for this chunk
  @param tokenStartIndex - Index (relative to current list of tokens) at which this chunk starts
  @param tokenEndIndex - Index (relative to current list of tokens) at which this chunk ends (not inclusive)
  @param tokenChunkKey - If not null, each token is annotated with the chunk using this key
  @param tokenLabelKey - If not null, each token is annotated with the text associated with the chunk using this key
  @return Annotation representing new chunk