تدفق التوتر:: العمليات:: RegexReplace
#include <string_ops.h>
يستبدل مطابقات التعبير العادي pattern
في input
بسلسلة الاستبدال المتوفرة في rewrite
.
ملخص
يتبع بناء جملة re2 ( https://github.com/google/re2/wiki/Syntax )
الحجج:
- النطاق: كائن النطاق
- الإدخال: النص المراد معالجته.
- النمط: التعبير العادي الذي سيتم مطابقته في سلاسل
input
. - إعادة الكتابة: سلسلة إعادة الكتابة المراد استبدالها بتعبير
pattern
حيث تتم مطابقتها في سلاسلinput
.
السمات الاختيارية (انظر Attrs
):
- استبدال_عالمي: إذا كان صحيحًا، يكون الاستبدال عامًا (أي تتم إعادة كتابة جميع مطابقات التعبير العادي
pattern
في كل سلسلة إدخال)، وإلا فسيتم إجراء استبدالrewrite
فقط لمطابقةpattern
الأول.
العوائد:
-
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) |
الوظائف العامة | |
---|---|
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
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
)
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const
وظائف ثابتة العامة
ReplaceGlobal
Attrs ReplaceGlobal(
bool x
)