case classTextClassificationParams(baseDir: String = "./", maxSequenceLength: Int = 500, maxWordsNum: Int = 5000, trainingSplit: Double = 0.8, batchSize: Int = 128, embeddingDim: Int = 200, learningRate: Double = 0.01, partitionNum: Int = 4) extends AbstractTextClassificationParams with Product with Serializable
This example use a (pre-trained GloVe embedding) to convert word to vector,
and uses it to train a text classification model on the 20 Newsgroup dataset
with 20 different categories.
case classWordMeta(count: Int, index: Int) extends Product with Serializable