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

Method convertAllTextToIndices_

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

* Convert all training text to integer indices.

()

Source from the content-addressed store, hash-verified

215 * Convert all training text to integer indices.
216 */
217 convertAllTextToIndices_() {
218 this.indices_ = new Uint16Array(this.textToIndices(this.textString_));
219 }
220
221 /**
222 * Generate the example-begin indices; shuffle them randomly.

Callers 1

constructorMethod · 0.95

Calls 1

textToIndicesMethod · 0.95

Tested by

no test coverage detected