Modifier and Type | Class and Description |
---|---|
static class |
StaticRegexReplace.Options
Optional attributes for
StaticRegexReplace |
operation
Modifier and Type | Method and Description |
---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
static StaticRegexReplace |
create(Scope scope,
Operand<String> input,
String pattern,
String rewrite,
StaticRegexReplace.Options... options)
Factory method to create a class wrapping a new StaticRegexReplace operation.
|
Output<String> |
output()
The text after applying pattern and rewrite.
|
static StaticRegexReplace.Options |
replaceGlobal(Boolean replaceGlobal) |
equals, hashCode, op, toString
public static StaticRegexReplace create(Scope scope, Operand<String> input, String pattern, String rewrite, StaticRegexReplace.Options... options)
scope
- current scopeinput
- The text to be processed.pattern
- The regular expression to match the input.rewrite
- The rewrite to be applied to the matched expression.options
- carries optional attributes valuespublic static StaticRegexReplace.Options replaceGlobal(Boolean replaceGlobal)
replaceGlobal
- If True, the replacement is global, otherwise the replacement
is done only on the first match.public Output<String> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<String>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.