slice_(startIndex, endIndex) {
    return this.textString_.slice(startIndex, endIndex);
  }
Get a slice of the training text data.

@param {number} startIndex
@param {number} endIndex
@param {bool} useIndices Whether to return the indices instead of string.
@returns {string | Uint16Array} The result of the slicing.