com.intel.analytics.bigdl.dataset.text
Transform a string of sentence to LabeledSentence. e.g. ["I", "love", "Intel"] => [0, 1, 2] data: [0, 1] label: [1, 2]
The input Array[String] should be a tokenized sentence. e.g. I love Intel => ["I", "love", "Intel"]
Apply this transformer to rdd
Transform a string of sentence to LabeledSentence. e.g. ["I", "love", "Intel"] => [0, 1, 2] data: [0, 1] label: [1, 2]
The input Array[String] should be a tokenized sentence. e.g. I love Intel => ["I", "love", "Intel"]