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

Method getFromCharSet

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

* Get the unique character at given index from the character set. * * @param {number} index * @returns {string} The unique character at `index` of the character set.

(index)

Source from the content-addressed store, hash-verified

156 * @returns {string} The unique character at `index` of the character set.
157 */
158 getFromCharSet(index) {
159 return this.charSet_[index];
160 }
161
162 /**
163 * Convert text string to integer indices.

Callers 2

generateTextFunction · 0.80
data_test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected