* Constructor of NeuralNetworkTextGenerator. * * @param {TextData} textData An instance of `TextData`.
(textData)
| 48 | * @param {TextData} textData An instance of `TextData`. |
| 49 | */ |
| 50 | constructor(textData) { |
| 51 | this.textData_ = textData; |
| 52 | this.charSetSize_ = textData.charSetSize(); |
| 53 | this.sampleLen_ = textData.sampleLen(); |
| 54 | this.textLen_ = textData.textLen(); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Create LSTM model from scratch. |
nothing calls this directly
no test coverage detected