tensorflow:: ops:: RegexReplace
#include <string_ops.h>
Replaces matches of the pattern
regular expression in input
with the replacement string provided in rewrite
.
Summary
It follows the re2 syntax (https://github.com/google/re2/wiki/Syntax)
Args:
- scope: A Scope object
- input: 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 is matched in theinput
strings.
Optional attributes (see Attrs
):
- replace_global: If True, the replacement is global (that is, all matches of the
pattern
regular expression in each input string are rewritten), otherwise therewrite
substitution is only made for the firstpattern
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:: |
Optional attribute setters for RegexReplace. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
RegexReplace
RegexReplace( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite )
RegexReplace
RegexReplace( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite, const RegexReplace::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
ReplaceGlobal
Attrs ReplaceGlobal( bool x )