result[i1...iN, j] is the Unicode codepoint for the jth character in
input[i1...iN], when decoded using input_encoding.
Args
input
An N dimensional potentially ragged string tensor with shape
[D1...DN]. N must be statically known.
input_encoding
String name for the unicode encoding that should be used to
decode each string.
errors
Specifies the response when an input string can't be converted
using the indicated encoding. One of:
'strict': Raise an exception for any illegal substrings.
'replace': Replace illegal substrings with replacement_char.
'ignore': Skip illegal substrings.
replacement_char
The replacement codepoint to be used in place of invalid
substrings in input when errors='replace'; and in place of C0 control
characters in input when replace_control_characters=True.
replace_control_characters
Whether to replace the C0 control characters
(U+0000 - U+001F) with the replacement_char.
name
A name for the operation (optional).
Returns
A N+1 dimensional int32 tensor with shape [D1...DN, (num_chars)].
The returned tensor is a tf.Tensor if input is a scalar, or a
tf.RaggedTensor otherwise.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[],[]]