MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / slice_

Method slice_

lstm-text-generation/data.js:197–199  ·  view source on GitHub ↗

* 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.

(startIndex, endIndex)

Source from the content-addressed store, hash-verified

195 * @returns {string | Uint16Array} The result of the slicing.
196 */
197 slice_(startIndex, endIndex) {
198 return this.textString_.slice(startIndex, endIndex);
199 }
200
201 /**
202 * Get the set of unique characters from text.

Callers 1

getRandomSliceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected