public <T extends Number> ToNumber<T> toNumber(Operand<String> stringTensor, Class<T> outType)
ToNumber operationstringTensor - outType - The numeric type to interpret each string in `string_tensor` as.ToNumberpublic UnicodeTranscode unicodeTranscode(Operand<String> input, String inputEncoding, String outputEncoding, UnicodeTranscode.Options... options)
UnicodeTranscode operationinput - The text to be processed. Can have any shape.inputEncoding - Text encoding of the input strings. This is any of the encodings supportedoutputEncoding - The unicode encoding to use in the output. Must be one ofoptions - carries optional attributes valuesUnicodeTranscodepublic ToHashBucket toHashBucket(Operand<String> stringTensor, Long numBuckets)
ToHashBucket operationstringTensor - numBuckets - The number of buckets.ToHashBucketpublic StringFormat stringFormat(Iterable<Operand<?>> inputs, StringFormat.Options... options)
StringFormat operationinputs - The list of tensors to format into the placeholder string.options - carries optional attributes valuesStringFormatpublic StringLength stringLength(Operand<String> input, StringLength.Options... options)
StringLength operationinput - The string for which to compute the length.options - carries optional attributes valuesStringLengthpublic ToNumber<Float> toNumber(Operand<String> stringTensor)
ToNumber operationstringTensor - ToNumberpublic UnicodeScript unicodeScript(Operand<Integer> input)
UnicodeScript operationinput - A Tensor of int32 Unicode code points.UnicodeScriptpublic Strip strip(Operand<String> input)
Strip operationinput - A string `Tensor` of any shape.Strippublic StringSplit stringSplit(Operand<String> input, Operand<String> sep, StringSplit.Options... options)
StringSplit operationinput - `1-D` string `Tensor`, the strings to split.sep - `0-D` string `Tensor`, the delimiter character.options - carries optional attributes valuesStringSplitpublic RegexReplace regexReplace(Operand<String> input, Operand<String> pattern, Operand<String> rewrite, RegexReplace.Options... options)
RegexReplace operationinput - The text to be processed.pattern - The regular expression to be matched in the `input` strings.rewrite - The rewrite string to be substituted for the `pattern` expression where it isoptions - carries optional attributes valuesRegexReplacepublic ToHashBucketStrong toHashBucketStrong(Operand<String> input, Long numBuckets, List<Long> key)
ToHashBucketStrong operationinput - The strings to assign a hash bucket.numBuckets - The number of buckets.key - The key used to seed the hash function, passed as a list of two uint64ToHashBucketStrongpublic ToHashBucketFast toHashBucketFast(Operand<String> input, Long numBuckets)
ToHashBucketFast operationinput - The strings to assign a hash bucket.numBuckets - The number of buckets.ToHashBucketFastpublic <T extends Number> Substr substr(Operand<String> input, Operand<T> pos, Operand<T> len, Substr.Options... options)
Substr operationinput - Tensor of stringspos - Scalar defining the position of first character in each substringlen - Scalar defining the number of characters to include in each substringoptions - carries optional attributes valuesSubstrpublic RegexFullMatch regexFullMatch(Operand<String> input, Operand<String> pattern)
RegexFullMatch operationinput - A string tensor of the text to be processed.pattern - A scalar string tensor containing the regular expression to match the input.RegexFullMatchpublic Join join(Iterable<Operand<String>> inputs, Join.Options... options)
Join operationinputs - A list of string tensors. The tensors must all have the same shape,options - carries optional attributes valuesJoinpublic ReduceJoin reduceJoin(Operand<String> inputs, Operand<Integer> reductionIndices, ReduceJoin.Options... options)
ReduceJoin operationinputs - The input to be joined. All reduced indices must have non-zero size.reductionIndices - The dimensions to reduce over. Dimensions are reduced in theoptions - carries optional attributes valuesReduceJoinCopyright © 2022. All rights reserved.