constructor(textData) {
    this.textData_ = textData;
    this.charSetSize_ = textData.charSetSize();
    this.sampleLen_ = textData.sampleLen();
    this.textLen_ = textData.textLen();
  }
Constructor of NeuralNetworkTextGenerator.

@param {TextData} textData An instance of `TextData`.