tensorflow::
ops::
UnicodeScript
#include <string_ops.h>
Determine the script codes of a given tensor of Unicode integer code points.
Summary
This operation converts Unicode code points to script codes corresponding to each code point. Script codes correspond to International Components for Unicode (ICU) UScriptCode values.
See ICU project docs for more details on script codes.
For an example, see the unicode strings guide on unicode scripts .
Returns -1 (USCRIPT_INVALID_CODE) for invalid codepoints. Output shape will match input shape.
Examples:
tf.strings.unicode_script([1, 31, 38])
Args:
Returns:
Constructors and Destructors |
|
---|---|
UnicodeScript
(const ::
tensorflow::Scope
& scope, ::
tensorflow::Input
input)
|
Public attributes |
|
---|---|
operation
|
|
output
|
Public functions |
|
---|---|
node
() const
|
::tensorflow::Node *
|
operator::tensorflow::Input
() const
|
|
operator::tensorflow::Output
() const
|
|
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const