| Modifier and Type | Class | Description |
|---|---|---|
static class |
RegexReplace.Options |
Optional attributes for
RegexReplace |
operation| Modifier and Type | Method | Description |
|---|---|---|
Output<java.lang.String> |
asOutput() |
Returns the symbolic handle of a tensor.
|
static RegexReplace |
create(Scope scope,
Operand<java.lang.String> input,
Operand<java.lang.String> pattern,
Operand<java.lang.String> rewrite,
RegexReplace.Options... options) |
Factory method to create a class to wrap a new RegexReplace operation to the graph.
|
Output<java.lang.String> |
output() |
The text after applying pattern and rewrite.
|
static RegexReplace.Options |
replaceGlobal(java.lang.Boolean replaceGlobal) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static RegexReplace create(Scope scope, Operand<java.lang.String> input, Operand<java.lang.String> pattern, Operand<java.lang.String> rewrite, RegexReplace.Options... options)
scope - current graph scopeinput - The text to be processed.pattern - The regular expression to match the input.rewrite - The rewrite to be applied to the matched expresion.options - carries optional attributes valuespublic static RegexReplace.Options replaceGlobal(java.lang.Boolean replaceGlobal)
replaceGlobal - If True, the replacement is global, otherwise the replacement
is done only on the first match.public Output<java.lang.String> output()
public Output<java.lang.String> asOutput()
OperandInputs 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<java.lang.String>OperationBuilder.addInput(Output)