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.ToNumber
public 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 valuesUnicodeTranscode
public ToHashBucket toHashBucket(Operand<String> stringTensor, Long numBuckets)
ToHashBucket
operationstringTensor
- numBuckets
- The number of buckets.ToHashBucket
public StringFormat stringFormat(Iterable<Operand<?>> inputs, StringFormat.Options... options)
StringFormat
operationinputs
- The list of tensors to format into the placeholder string.options
- carries optional attributes valuesStringFormat
public StringLength stringLength(Operand<String> input, StringLength.Options... options)
StringLength
operationinput
- The string for which to compute the length.options
- carries optional attributes valuesStringLength
public ToNumber<Float> toNumber(Operand<String> stringTensor)
ToNumber
operationstringTensor
- ToNumber
public UnicodeScript unicodeScript(Operand<Integer> input)
UnicodeScript
operationinput
- A Tensor of int32 Unicode code points.UnicodeScript
public Strip strip(Operand<String> input)
Strip
operationinput
- A string `Tensor` of any shape.Strip
public 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 valuesStringSplit
public 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 valuesRegexReplace
public 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 uint64ToHashBucketStrong
public ToHashBucketFast toHashBucketFast(Operand<String> input, Long numBuckets)
ToHashBucketFast
operationinput
- The strings to assign a hash bucket.numBuckets
- The number of buckets.ToHashBucketFast
public <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 valuesSubstr
public 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.RegexFullMatch
public 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 valuesJoin
public 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 valuesReduceJoin
Copyright © 2022. All rights reserved.