Transform labeled sentences to one-hot format samples
e.g. sentence._data: [0, 2, 3]
sentence._label: [2, 3, 1]
vocabLength: 4
> input: 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1
target: [3, 4, 2]
The input is an iterator of LabeledSentence class
The output is an iterator of Sample class
Transform labeled sentences to one-hot format samples e.g. sentence._data: [0, 2, 3] sentence._label: [2, 3, 1] vocabLength: 4
> input: 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1 target: [3, 4, 2] The input is an iterator of LabeledSentence class The output is an iterator of Sample class