Create a TextFeature with label and uri.
Create a TextFeature with label and uri. It is recommended that label starts from 0.
Create a TextFeature with label.
Create a TextFeature with label. It is recommended that label starts from 0.
Create a TextFeature without label.
Key for the indices corresponding to the tokens after performing word2idx.
Key for the indices corresponding to the tokens after performing word2idx. Value should be an array of Float.
Key for the label for the original text content.
Key for the label for the original text content. Value should be an integer.
Key for the text prediction result.
Key for the text prediction result. Value should be a BigDL Tensor.
Key for the sample (feature and label if any).
Key for the sample (feature and label if any). Value should be a BigDL Sample[Float].
Key for the original text content.
Key for the original text content. Value should be a String.
Key for the tokens after doing tokenization (or other token-based transformation such as normalization) on the original text.
Key for the tokens after doing tokenization (or other token-based transformation such as normalization) on the original text. Value should be an array of String.
Key for the identifier of the TextFeature.
Key for the identifier of the TextFeature. It can be the id of the text in your corpus or the uri of the file. Value should be a String.