tensorflow:: ops:: RegexReplace
#include <string_ops.h> inputのpattern正規表現に一致する部分を、 rewriteで指定された置換文字列に置き換えます。
まとめ
re2構文( https://github.com/google/re2/wiki/Syntax )に準拠しています。
議論:
- スコープ:スコープオブジェクト
- 入力:処理対象のテキスト。
- パターン:
input文字列内で一致させる正規表現。 - rewrite:
input文字列内でパターン式に一致する箇所で、pattern式に置き換えるための書き換え文字列。
オプション属性( Attrs参照):
- replace_global: True の場合、置換はグローバルに行われます (つまり、各入力文字列内の
pattern正規表現のすべてのマッチが書き換えられます)。それ以外の場合は、最初のpatternマッチに対してのみrewrite置換が行われます。
返品:
-
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) |
公開属性 | |
|---|---|
operation | |
output | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
ReplaceGlobal (bool x) | |
構造 | |
|---|---|
| tensorflow:: ops:: RegexReplace:: Attrs | 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
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
リプレイスグローバル
Attrs ReplaceGlobal( bool x )