#include <string_ops.h>
Replaces matches of the pattern regular expression in input with the replacement string provided in rewrite.
It follows the re2 syntax (https://github.com/google/re2/wiki/Syntax)
Arguments:
input strings.pattern expression where it is matched in the input strings.Optional attributes (see Attrs):
pattern regular expression in each input string are rewritten), otherwise the rewrite substitution is only made for the first pattern match.Returns:
Output: The text after applying pattern match and rewrite substitution. | Constructors and Destructors | |
|---|---|
RegexReplace(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite) | |
RegexReplace(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite, const RegexReplace::Attrs & attrs) |
| Public attributes | |
|---|---|
operation | |
output | |
| Public functions | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Public static functions | |
|---|---|
ReplaceGlobal(bool x) | |
| Structs | |
|---|---|
| tensorflow::ops::RegexReplace::Attrs | Optional attribute setters for RegexReplace. |
Operation operation
::tensorflow::Output output
RegexReplace( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite )
RegexReplace( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite, const RegexReplace::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs ReplaceGlobal( bool x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/regex-replace